A craniotomy is surgery to open the skull for brain repair. It's done for serious fractures that affect the brain to ease pressure or remove debris.