Bronchoscopy is a procedure performed for the diagnosis or treatment of diseases related to the respiratory tract and lungs. It is primarily used for the evaluation and management of conditions such as lung cancer, respiratory system infections, bloody sputum, persistent cough or hoarseness of unknown cause, rheumatological diseases affecting the lungs, and the presence of foreign bodies in the airways.