Tuberculosis remains the deadliest infectious disease in the world and requires novel therapeutic targets. The ESX-3 secretion system, which is essential for iron and zinc homeostasis and thus M. tuberculosis survival, is a promising target. In this study, we perform a deep mutational scan on the ESX-3 core protein EccD3 in the model organism M. smegmatis. We systematically investigated the functional roles of 145 residues across the soluble ubiquitin-like domain, the conformationally distinct flexible linker, and selected transmembrane helices of EccD3. Our data combined with structural comparisons to ESX-5 complexes support a model where EccD3 stabilizes the complex, with the hinge motif within the linker being particularly sensitive to disruption. Our study is the first deep mutational scan in mycobacteria, which could help guide drug development toward novel treatment of tuberculosis. This study underscores the importance of context-specific mutational analyses for discovering essential protein interactions within mycobacterial systems.