Multiple peptide resistance factor (MprF) confers resistance to cationic antimicrobial peptides (AMPs) in several pathogens, thereby enabling evasion of the host immune response. The role of MprF in commensals remains, however, uncharacterized. To close this knowledge gap, we used a common gut commensal of animals, Lactiplantibacillus plantarum, and its natural host, the fruit fly Drosophila melanogaster, as an experimental model to investigate the role of MprF in commensal-host interactions. The L. plantarum ΔmprF mutant that we generated exhibited deficiency in the synthesis of lysyl-phosphatidylglycerol (Lys-PG), resulting in increased negative cell surface charge and increased susceptibility to AMPs. Susceptibility to AMPs had no effect on ΔmprF mutant’s ability to colonize guts of uninfected flies. However, we observed significantly reduced abundance of the ΔmprF mutant after infection-induced inflammation in the guts of wild-type flies but not of flies lacking AMPs. Additionally, we found that the ΔmprF mutant compared to wild-type L. plantarum induces a stronger intestinal immune response in flies due to the increased release of immunostimulatory peptidoglycan fragments, indicating an important role of MprF in promoting host tolerance to commensals. Our further analysis suggests that MprF-mediated lipoteichoic acid modifications are involved in host immunomodulation. Overall, our results demonstrate that MprF, besides its well-characterized role in pathogen immune evasion and virulence, is also an important commensal resilience factor.