This animation video shows how surgery is done to remove a part of a skull in order to relieve pressure in that area when your brain swells. A craniectomy is usually performed after a traumatic brain injury. It's also done to treat conditions that cause your brain to swell or bleed.