ML338 is a selective small-molecule inhibitor probe targeting non-replicating Mycobacterium tuberculosis bacilli; it is useful for identifying essential functions and vulnerabilities of Mycobacterium tuberculosis under nutrient-deprived conditions and can be used in tuberculosis-related research.