Phagocytic cells capture and kill most invader microbes within the bactericidal phagosome, but some pathogens subvert killing by damaging the compartment and escaping to the cytosol. To prevent the leakage of pathogen virulence and host defence factors, as well as bacteria escape, host cells have to contain and repair the membrane damage, or finally eliminate the cytosolic bacteria. All eukaryotic cells engage various repair mechanisms to ensure plasma membrane integrity and proper compartmentalization of organelles, including the Endosomal Sorting Complex Required for Transport (ESCRT) and autophagy machineries. We show that during infection of Dictyostelium discoideum with Mycobacterium marinum, the ESCRT-I component Tsg101, the ESCRT-III protein Snf7/Chmp4/Vps32 and the AAA-ATPase Vps4 are recruited to sites of damage at the Mycobacterium-containing vacuole. Interestingly, damage separately recruits the ESCRT and the autophagy machineries. In addition, the recruitment of Vps32 and Vps4 to repair sterile membrane damage depends on Tsg101 but appears independent of Ca2+. Finally, in absence of Tsg101, M. marinum accesses prematurely the cytosol, where the autophagy machinery restricts its growth. We propose that ESCRT has an evolutionary conserved function to repair small membrane damage and to contain intracellular pathogens in intact compartments. Upon uptake by a host cell, intracellular pathogens reside in a membranous compartment called phagosome. Within the phagosome, microbes are protected from the extracellular and cytosolic immune defences, whilst access to nutrients is limited. Some microbes gain access to the host cytosol by damaging the membrane of the phagosome, a step preceding egress and dissemination. Autophagy, a major catabolic pathway in eukaryotes, has been previously proposed to contribute to autonomous cell defence and to repair the membrane damage induced by intracellular pathogens. Here, we provide evidence that, in Dictyostelium discoideum, autophagy does not work alone in the containment of vacuolar mycobacteria, but it operates together with the Endosomal Sorting Complex Required for Transport (ESCRT), a protein machinery recently shown to repair endolysosomal damage. We demonstrate that the membrane perforations induced by the ESX-1 secretion system of Mycobacterium marinum are targeted by both ESCRT and autophagy, which seal the damaged vacuole. We propose that ESCRT might mend small membrane pores, whilst autophagy patches larger cumulative wounds. Interestingly, and contrary to what has been described in mammalian cells for ESCRT-dependent endolysosomal repair, in D. discoideum, repair of sterile membrane damage appears not to require Ca2+. The evolutionary conservation of the function of ESCRT in membrane repair suggests that this machinery plays an ancestral and widespread role to contain a broad range of intracellular pathogens.