EBUS is primarily used to diagnose and stage lung cancer. It is particularly useful for evaluating mediastinal and hilar lymph nodes, which are common sites for metastasis in lung cancer. Additionally, EBUS can be used to diagnose other conditions such as sarcoidosis, tuberculosis, and lymphoma.