Microbial pathogenicity often depends on the route of infection. For instance, P. aeruginosa or S. marcescens cause acute systemic infections when low numbers of bacteria are injected into D. melanogaster flies whereas flies succumb much slower to the continuous ingestion of these pathogens, even though both manage to escape from the gut compartment and reach the hemocoel. Here, we have developed a latent P. aeruginosa infection model by feeding flies on the bacteria for a short period. The bacteria stably colonize internal tissues yet hardly cause any damage since latently-infected flies live almost as long as noninfected control flies. The apparently dormant bacteria display particular characteristics in terms of bacterial colony morphology, composition of the outer cell wall, and motility. The virulence of these bacteria can however be reactivated upon wounding the host. We show that melanization but not the cellular or the systemic humoral response is the predominant host defense that establishes latency and may coerce the bacteria to a dormant state. In addition, the lasting activation of the melanization responses in latently-infected flies provides a degree of protection to the host against a secondary fungal infection. Latent infections by an ingested pathogen protects against a variety of homologous or heterologous systemic secondary infectious challenges, a situation previously described for the endosymbiotic Wolbachia bacteria, a guard against viral infections.