The cytokine IFNγ is a principal effector of macrophage activation and immune resistance to mycobacterial infection; however, pathogenic mycobacteria are capable of surviving in IFNγ-activated macrophages by largely unknown mechanisms. In this study, we find that pathogenic mycobacteria, including M. bovis BCG and M. tuberculosis can sense IFNγ to promote their proliferative activity and virulence phenotype. Moreover, interaction with the host intracellular environment increases the susceptibility of mycobacteria to IFNγ through upregulating expression of mmpL10, a mycobacterial IFNγ receptor, thereby facilitating IFNγ-dependent survival and growth of mycobacteria in macrophages. Transmission electron microscopy analysis reveals that IFNγ triggers the secretion of extracellular vesicles, an essential virulence strategy of intracellular mycobacteria, while proteomics identifies numerous pivotal IFNγ-induced effectors required for mycobacterial infection in macrophages. Our study suggests that sensing host IFNγ is a crucial virulence mechanism used by pathogenic mycobacteria to survive and proliferate inside macrophages.