Statins abrogate ischemic renal injury in animal studies but whether they are renoprotective in humans is unknown. We conducted a population-based retrospective cohort study that included 213,347 older patients who underwent major elective surgery in the province of Ontario, Canada from 1995 to 2008. During the first 14 postoperative days, 1.9% (4020 patients), developed acute kidney injury and 0.5% (1173 patients), required acute dialysis. The 30-day mortality rate was 2.8% (5974 patients). Prior to surgery, 32% of patients were taking a statin. After statistical adjustment for patient and surgical characteristics, statin use associated with 16% lower odds of acute kidney injury (OR, 0.84; 95% CI, 0.79 to 0.90), 17% lower odds of acute dialysis (OR, 0.83; 95% CI, 0.72 to 0.95), and 21% lower odds of mortality (OR, 0.79; 95% CI, 0.74 to 0.85). Propensity score matching produced similar results. These data suggest that statins may protect against renal complications after major elective surgery and reduce perioperative mortality.