Bronchoscopy is a medical procedure that involves inserting a flexible tube with a camera and light at the end into the airways of the lungs. It is typically used to diagnose and treat various lung conditions, such as infections, tumors, and inflammation. During the procedure, the doctor can collect tissue samples or remove any obstructions found in the airways.