In addition to controlling gene expression, mediating DNA folding into chromatin, and responding to immunological stimuli, histones are also thought to have antimicrobial effects. This study identified the molecular characteristics of core Histone MacroH2A2 (TOMacroH2A2) and Histone H2B 1/2 (TOH2B) from Trachinotus ovatus, and the antimicrobial potential of their derived peptides (To.mh2a and To. h2b). The open reading frames (ORFs) of TOMacroH2A2 and TOH2B from T. ovatus were 1010 bp and 375 bp, encoding polypeptides of 369 and 124 amino acids, respectively. The TOMacroH2A2 included an H2A domain and an A1pp domain, while TOH2B included an H2B domain. The amino acid sequences of TOMacroH2A2 and TOH2B demonstrated high homology with other teleost's sequences of histone macroh2a2 and histone h2b, with homologies exceeding 90 %. Expression analysis showed high expression of TOMacroH2A2 in brain, stomach, heart, and skin tissues and TOH2B in gill, brain, and skin tissues. In addition, the histone-derived peptides To. mh2a and To. h2b, synthesized based on two histone sequences from T. ovatus, exhibited typical physical characteristics of antimicrobial peptides, including positive charges, amphipathicity, hydrophobicity, and rich α-helix structure. Crucially, the vitro antibacterial results demonstrated that To. mh2a and To. h2b can inhibit the growth of various aquatic pathogens including Streptococcus agalactiae, Staphylococcus aureus, Bacillus subtilis, Acinetobacter baumannii, Aeromonas hydrophila, and Escherichia coli to varying degrees. Specifically, To. mh2a and To. h2b were capable of disrupting the cell surface structures of S. aureus and penetrating the cell membrane, leading to the leakage of cellular contents, thereby exerting their antibacterial effects. Furthermore, gel electrophoresis migration assays showed that To. mh2a and To. h2b participated in antimicrobial activity by binding to bacterial genomic DNA and reducing the migration rate of gDNA in a dose-dependent manner. The minimum effective concentration for binding to DNA was approximately 50 μM. In conclusion, our study suggested that To. mh2a and To. h2b can act as antimicrobial peptides, providing a potential strategy for controlling bacterial diseases in T. ovatus.