A tonsillectomy is a surgical procedure to remove the tonsils, which are two lymphoid tissues located at the back of the throat. This procedure is commonly performed in children experiencing recurrent throat infections or obstructive sleep apnea due to enlarged tonsils.