Pneumonectomy is a surgical procedure involving the removal of an entire lung, typically performed to treat lung cancer, severe trauma, or chronic lung infections. It is a major operation that requires careful patient selection and postoperative management to mitigate risks such as respiratory failure and infection.