Pneumonectomy is a surgical procedure that involves the removal of an entire lung. It is typically performed to treat lung cancer, severe lung infections, or other significant pulmonary diseases when less invasive treatments are not viable. The procedure requires careful consideration of the patient's overall respiratory function and may necessitate rehabilitation to help the patient adjust to the loss of lung capacity.