A decompressive craniectomy is a surgical technique that permanently removes a considerable piece of the skull to relieve pressure on the brain due to bleeding or swelling. It is usually performed in emergencies to prevent further damage to the brain.