Type VII secretion (T7S) systems are specialized machineries used by mycobacterial pathogens to transport important virulence factors across their highly hydrophobic cell envelope. There are up to five mycobacterial T7S systems, named ESX-1 to ESX-5, at least three of which specifically secrete a different subset of substrates. The T7S substrates or substrate complexes are defined by the general secretion motif YxxxD/E. However this motif does not determine system specificity. Here, we show that the substrate domain recognized by the EspG chaperone is the determinant factor for this specificity. We first show that the introduction of point mutations into the EspG 1 -binding domain of the ESX-1 substrate pair PE35/PPE68-1 affects their secretion. Subsequently, we demonstrate that replacing this domain by the EspG 5 -binding domain of the ESX-5 substrate PPE18 resulted in EspG 5 dependence and exclusive rerouting to the ESX-5 system. This rerouting of PE35/PPE68-1 to the ESX-5 system had a negative effect on the secretion of endogenous ESX-5 substrates.