The ESCRT and autophagy machineries cooperate to repair ESX-1-dependent damage at the Mycobacterium-containing vacuole but have opposite impact on containing the infection. This evidence concerns the gene ESX1 and infection.