Sarcoidosis is a granulomatous disease of unknown origin, which affects many organs and systems, and is often seen in young adults. The most common organ involved in sarcoidosis is the lung and various radiological features are observed. Bilateral hilar lymph node enlargement is the most common finding, followed by interstitial lung disease. Primer cavitary sarcoidosis is very rare. In this article, we present a case of sarcoidosis diagnosed by mediastinoscopy who had a history of contact with tuberculosis and diffuse cavitary lung lesions and hilar lymphadenopathies on thoracic computed tomography. Sarcoidosis should be kept in mind in the differential diagnosis of cavitary lesions of lung.