Facultative endosymbiotic bacteria, such asWolbachiaandSpiroplasmaspecies, are commonly found in association with insects and can dramatically alter their host physiology. Many endosymbionts are defensive and protect their hosts against parasites or pathogens. Despite the widespread nature of defensive insect symbioses and their importance for the ecology and evolution of insects, the mechanisms of symbiont-mediated host protection remain poorly characterized. Here, we utilized the fruit flyDrosophila melanogasterand its facultative endosymbiontSpiroplasma poulsoniito characterize the mechanisms underlying symbiont-mediated host protection against bacterial and fungal pathogens. Our results indicate a variable effect ofS. poulsoniion infection outcome, with endosymbiont-harbouring flies being more resistant toRhyzopus oryzae,Staphylococcus aureus,andProvidencia alcalifaciens, but more sensitive or as sensitive as endosymbiont-free flies to the infections withPseudomonasspecies. Further focusing on the protective effect, we identified Transferrin-mediated iron sequestration induced bySpiroplasmaas being crucial for the defense againstR. oryzaeandP. alcalifaciens. In case ofS. aureus, enhanced melanization inSpiroplasma-harbouring flies plays a major role in the protection. Both iron sequestration and melanization induced bySpiroplasmarequire the host immune sensor protease Persephone, suggesting a role of proteases secreted by the symbiont in the activation of host defense reactions. Hence, our work reveals a broader defensive range ofSpiroplasmathan previously appreciated and adds nutritional immunity and melanization to the defensive arsenal of symbionts.ImportanceDefensive endosymbiotic bacteria conferring protection to their hosts against parasites and pathogens are widespread in insect populations. However, the mechanisms by which most symbionts confer protection are not fully understood. Here, we studied the mechanisms of protection against bacterial and fungal pathogens mediated by theDrosophila melanogasterendosymbiontSpiroplasma poulsonii. We demonstrate that besides previously described protection against wasps and nematodes,Spiroplasmaalso confers increased resistance to pathogenic bacteria and fungi. We identifiedSpiroplasma-induced iron sequestration and melanisation as key defense mechanisms. Our work broadens the known defense spectrum ofSpiroplasmaand reveals a previously unappreciated role of melanization and iron sequestration in endosymbiont-mediated host protection. We propose that the mechanisms we have identified here may be of broader significance and could apply to other endosymbionts, particularly toWolbachia, and potentially explain their protective properties.