During endosymbiosis, bacteria live intracellularly in the symbiotic organ of their host. The host controls the proliferation of endosymbionts and prevents their spread to other tissues and organs. In Rhizobium-legume symbiosis the major host effectors are secreted nodule-specific cysteine-rich (NCR) peptides, produced exclusively in the symbiotic cells. NCRs have evolved in the Inverted Repeat Lacking Clade (IRLC) of the Leguminosae family. They are secreted peptides that mediate terminal differentiation of the endosymbionts, forming polyploid, non-cultivable cells with increased membrane permeability. NCRs form an extremely large family of peptides, which have four or six conserved cysteines but otherwise highly diverse amino acid sequences, resulting in a wide variety of anionic, neutral and cationic peptides. In vitro, many synthetic NCRs have strong antimicrobial activities against both Gram-negative and Gram-positive bacteria, including the ESKAPE strains and pathogenic fungi. The spectra and minimal bactericidal and anti-fungal concentrations of NCRs differ, indicating that, in addition to their charge, the amino acid composition and sequence also play important roles in their antimicrobial activity. NCRs attack the bacteria and fungi at the cell envelope and membrane as well as intracellularly, forming interactions with multiple essential cellular machineries. NCR-like peptides with similar symbiotic functions as the NCRs also exist in other branches of the Leguminosae family. Thus, legumes provide countless and so far unexplored sources of symbiotic peptides representing an enormous resource of pharmacologically interesting molecules.