Axial HRCT scan of a 52-year-old male revealed pneumothorax on the right side. A cavitary lesion with irregular margins and few internal septations was detected in the right middle lobe, indicating the likelihood of a fungal infection within the cavity. A culture test revealed that the patient had candidiasis. Mechanical ventilation was the cause of the pneumothorax. Cavity formation might be caused by invasive candidiasis, mechanical ventilation, or a combination of the two