Pneumonectomy is a surgical procedure that involves the removal of an entire lung. It is typically performed to treat lung cancer, severe lung diseases, or traumatic injuries that cannot be repaired. The surgery can significantly impact respiratory function, so it's usually considered only when other treatment options are not viable. Patients may require extensive rehabilitation post-surgery to adapt to the changes in lung capacity.