Cavities in the lungs are usually the result of chest X-ray and CT examination of the lungs, which may be caused by fungal infection and tuberculosis. 1. Fungal infections: such as superficial fungal infections often manifested as erythema, papules, blisters and other skin damage, deep fungal infections will be manifested as symptoms of the corresponding affected organs, such as infections of the lungs CT examination may appear in the lungs have holes in the phenomenon, can be treated by itraconazole, fluconazole and other drugs. 2. Tuberculosis: Inactive tuberculosis has no obvious symptoms, and cavities are found in the lungs during chest imaging examinations such as chest radiographs and CT examinations of the lungs, etc. Active tuberculosis usually presents with symptoms such as coughing, coughing up sputum, chest pain, and fatigue, which can be treated individually with medications such as isoniazid and rifampicin under the guidance of a doctor. Therefore, patients with cavities in the lungs on imaging tests should go to the hospital as soon as possible to find out the cause of the disease, and actively cooperate with the doctor for treatment after diagnosis.