Antimicrobial peptides (AMPs), characterized by their cationic nature and amphiphilic properties, play a pivotal role in inhibiting the biological activity of microbes. Currently, only a fraction of the antimicrobial potential within the ribosomal protein family has been explored, despite its extensive membership and resemblance to AMPs. Herein we demonstrated that amphioxus RPL17 (BjRPL17) exhibited not only upregulated expression upon bacterial stimulation but also possessed bactericidal capabilities against both Gram-negative and -positive bacteria through combined action mechanisms including interaction with cell surface molecules LPS, LTA, and PGN, disruption of cell membrane integrity, promotion of membrane depolarization, and induction of intracellular ROS production. Furthermore, a peptide derived from residues 127–141 of BjRPL17 (termed BjRPL17-1) showed antibacterial activity against Staphylococcus aureus and its methicillin-resistant strain via the same mechanism observed for the full-length protein. Additionally, the rpl17 gene was highly conserved in Metazoa, hinting it may play a universal role in the antibacterial defense system in different animals. Importantly, neither BjRPL17 nor peptide BjRPL17-1 exhibited toxicity towards mammalian cells thereby offering prospects for designing novel AMP agents based on these findings. Collectively, our results establish RPL17 as a novel member of AMPs with remarkable evolutionary conservation.