Lung resection is a surgical procedure to remove a portion or the entirety of a lung, typically performed to treat lung cancer, infections, or other lung diseases. The extent of resection can vary from removing a small section to an entire lung, depending on the condition and its severity.