The genetic basis of resistance in Trachinotus ovatus to Streptococcus agalactiae, a prevalent pathogen in warm-water fish, was explored in this study. T. ovatus, an economically significant marine fish, is widely distributed in tropical and subtropical oceans. This research involved the whole-genome resequencing of 200 T. ovatus individuals and a genome-wide association study (GWAS) to identify significant single nucleotide polymorphisms (SNPs) associated with resistance to S. agalactiae. Methods included infection experiments with S. agalactiae, quality control of DNA samples, high-throughput sequencing, SNP detection and quality control, analysis of population genetic structure, linkage disequilibrium (LD) analysis, GWAS, screening of candidate genes, and genotyping of significant SNPs. Results indicated a significant association of specific SNP loci with resistance in T. ovatus to S. agalactiae, notably SNP18597184 on chromosome LG9, associated with the NTRK3 and IFNK genes involved in neural development, survival, and immune response.