A lobectomy is a surgical procedure in which a lobe of an organ, most commonly the lung or the brain, is removed. In the case of lung lobectomy, it is often performed to treat lung cancer or other serious lung conditions. In the case of brain lobectomy, it is typically done to treat epilepsy or other brain conditions. The goal of a lobectomy is to remove diseased or damaged tissue while preserving as much healthy tissue as possible. The procedure is often considered a last resort and is typically only performed when other treatments have been ineffective.