A protein-language-based model enables improved discovery of evolutionarily distant antimicrobial peptides (AMPs). High-confidence AMPs showed strong antibacterial activity, with the most potent demonstrating efficacy in a mouse model of E. coli infection.