This study aims to compare the efficacy of cephalosporin and non-cephalosporin antibiotics in preventing surgical site infections (SSIs) in patients undergoing colorectal surgery, providing a scientific basis for the selection of perioperative antibiotics through systematic review and meta-analysis. Adhering to the PRISMA guidelines, this research employed an extensive literature search strategy across multiple databases to identify relevant studies, including randomized controlled trials (RCTs) and observational studies. Inclusion criteria were studies on adults undergoing colorectal surgery who received preoperative prophylaxis with either cephalosporin or non-cephalosporin antibiotics. Exclusion criteria included preoperative diagnosis of infectious diseases and preoperative use of antimicrobial agents. Meta-analysis was conducted using RevMan 5.3 software to assess the effectiveness of both antibiotic classes in preventing SSIs, including subgroup analyses. Eight studies met the inclusion criteria, comprising 872 patients. Meta-analysis revealed that the incidence of SSI in the cephalosporin group was lower than in the non-cephalosporin group (14.8% vs 25.1%), with statistical significance (OR = 1.94, 95% CI: 1.38-2.74, PP = =0.0001). However, no significant difference in SSI risk was observed between the groups within 30days (OR = =1.92, 95% CI: 1.08-3.42). Subgroup analysis indicated that higher-quality studies were associated with larger effect sizes. This study suggests that cephalosporin antibiotics may be superior to non-cephalosporins in preventing SSIs following colorectal surgery, especially in the short term. However, their long-term efficacy in SSI prevention may be similar. The selection of perioperative antibiotics should consider factors such as the antimicrobial spectrum, pharmacokinetic properties, and bacterial resistance.