In a craniotomy, a surgeon removes a small piece of the scalp to get access to your brain. At the end of the surgery, they will put the piece of skull back. This is usually done so a surgeon can treat conditions such as brain tumors, clots, or aneurysms.