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