Objective: to analyze the incidence of surgical site infections (SSI) in patients submitted to neurological and orthopedic surgeries and their determinants in a public hospital. Method: retrospective cohort study, conducted between patients submitted to neurological and orthopedic surgeries, from January 2015 to December 2020. Results: of the 3,029 surgical procedures performed, 1,327 (43.8%) were neurosurgical; and 1,702 (56.2%) were orthopedic. The incidence of SSI was 6.7% (89) in neurosurgeries and 3.3% (56) in orthopedic surgery. The overall rate and death rates were 4.8% and 12.4%, respectively. In the univariate analysis, the risk factors associated with SSI in neurosurgeries involved surgical time (>231 minutes), an American Society of Anesthesiologists score greater than two and emergency surgeries; the risk factors for orthopedic procedures were emergency surgeries, preoperative hospitalization time (> four days), and surgical procedures (>149 minutes). In the multivariate analysis, emergency surgeries and longer surgical time remained as risk factors for SSI for both specialties; the SSI risk factors for orthopedic and neurological surgeries were preoperative hospitalization time and ASA classification, respectively. Conclusion: the incidence rate of SSI and mortality, as well as the risk factors identified in this study, should be considered in order to develop strategies aimed at preventing and controlling these infections.