Objective To determine the value of endobronchial ultrasound-guided transbronchial needle aspiration (EBUS-TBNA) in diagnosing lung or mediastinal lymph node cancer and tuberculosis. Methods Clinical and pathological data of 553 patients who underwent EBUS-TBNA from January 2013 to September 2016 in West China Hospital of Sichuan University were reviewed. The sensitivity, specificity and accuracy of EBUS-TBNA for diagnosing lymph node tumor and tuberculosis of hilar and mediastinal lymph nodes were calculated. Results The sensitivity, specificity and accuracy of EBUS-TBNA in diagnosing hilar and mediastinal lymph node cancer were 89.2% (263/295), 100% (247/247) and 94.1% (510/542), respectively, compared with 70% (76/117), 97.2% (385/396) and 89.9% (461/513), respectively, for diagnosing tuberculosis identified though granulomatous biopsy. In the 102 cases with acid fast staining and TB-PCR, 63.7% accuracy (58/91), 90.9% (10/11) sensitivity and 66.7% (68/102) specificity were found for any positive findings from acid fast bacilli or TB-DNA. Conclusion EBUS-TBNA has high sensitivity and specificity for diagnosing hilar and mediastinal tumor, which can be used in combination with acid fast staining and TB-PCR for diagnosing tuberculosis.