Tuberculosis is one of the most common causes of death worldwide, with a rapid emergence of multi-drug-resistant strains underscoring the need for new antituberculosis drugs. Recent studies indicate that lansoprazole—a known gastric proton pump inhibitor and its intracellular metabolite, lansoprazole sulfide (LPZS)—are potential antituberculosis compounds. Yet, their inhibitory mechanism and site of action still remain unknown. Here, we combine biochemical, computational, and structural approaches to probe the interaction of LPZS with the respiratory chain supercomplex III
2
IV
2
of
Mycobacterium smegmatis
, a close homolog of
Mycobacterium tuberculosis
supercomplex. We show that LPZS binds to the Q
o
cavity of the mycobacterial supercomplex, inhibiting the quinol substrate oxidation process and the activity of the enzyme. We solve high-resolution (2.6 Å) cryo-electron microscopy (cryo-EM) structures of the supercomplex with bound LPZS that together with microsecond molecular dynamics simulations, directed mutagenesis, and functional assays reveal key interactions that stabilize the inhibitor, but also how mutations can lead to the emergence of drug resistance. Our combined findings reveal an inhibitory mechanism of LPZS and provide a structural basis for drug development against tuberculosis.