A craniectomy is a surgery to remove a piece of your skull. It's done to help relieve pressure in the skull when the brain swells or blood builds up and presses on the brain.