Surgical site infection (SSI) is a major complication after the surgical treatment of ankle fractures that can result in catastrophic consequences. This study aimed to determine the incidence of SSI in several cohorts from national insurance databases over the past 12 years and identify its predictors. The claimed data for patients (n= 1,449,692) with ankle fractures between 2007 and 2019 were investigated, and a total of 41,071 patients were included in the final analysis. The covariates included were age, sex, season, fracture type (closed vs. open), type of surgical fixation procedure, and comorbidities of each patient. All subjects were divided into two groups according to the SSI after the surgical fixation of the ankle fracture (no infection group vs. infection group). The number of SSIs after the surgical treatment of ankle fractures was 874 (2.13%). Open fractures [odds ratio, (OR) = 4.220] showed the highest risk for SSI, followed by the male sex (OR = 1.841), an increasing number of comorbidities (3–5, OR = 1.484; ≥6, OR = 1.730), a history of dementia (OR = 1.720) or of myocardial infarction (OR = 1.628), and increasing age (OR = 1.010). The summer season (OR = 1.349) showed the highest risk among the four seasons for SSI after ankle fracture surgery.