Tuberculosis (TB), exceeded in mortality only by COVID-19 among global infectious diseases, is caused by Mycobacterium tuberculosis (Mtb). The pathogenicity of Mtb is largely attributed to its complex cell envelope, which includes a class of glycolipids called phosphatidyl-myo-inositol mannosides (PIMs), found uniquely in mycobacteria and its related corynebacterineae. These glycolipids maintain the integrity of the mycobacterial cell envelope, regulate its permeability, and mediate host-pathogen interactions. PIMs consist of a phosphatidyl-myo-inositol core decorated with one to six mannose residues and up to four acyl chains. The mannosyltransferase PimE catalyzes the transfer of the fifth PIM mannose residue from a polyprenyl phosphate-mannose (PPM) donor. This step in the biosynthesis of higher-order PIMs contributes to the proper assembly and function of the mycobacterial cell envelope; however, the structural basis for substrate recognition and the catalytic mechanism of PimE remain poorly understood. Here, we present the cryo-electron microscopy (cryo-EM) structures of PimE from Mycobacterium abscessus captured in its apo form and in a product-bound complex with the reaction product Ac1PIM5 and the by-product polyprenyl phosphate (PP), determined at 3.0 Å and 3.5 Å, respectively. The structures reveal the active site within a distinctive binding cavity that accommodates both donor and acceptor substrates/products. Within the cavity, we identified residues involved in substrate coordination and catalysis, which we confirmed through in vitro enzymatic assays and further validated by in vivo complementation experiments. Molecular dynamics simulations were applied to identify the access pathways and the dynamics involved in substrate binding. Integrating structural, biochemical, genetic, and computational experiments, our study provides comprehensive insights into how PimE functions, opening potential avenues for development of novel anti-TB therapeutics.