The primary purpose of this study was to evaluate the correlation between the intensity of acute postoperative pain and development of postpartum depression (PPD) after cesarean section (CS). The secondary purpose was to investigate perioperative risk factors for PPD detected in the postoperative period after CS. We retrospectively reviewed 615 women who had undergone CS between January 2017 and October 2019 in our hospital. The incidence of PPD was 22.7% on postoperative day (POD) 5 in the 247 women whose numerical rating scale (NRS) scores on POD3 were available. The severity of acute postoperative pain evaluated by NRS was higher in women with than in those without PPD on POD3 (P < 0.02). The independent risk factors for the onset of PPD on POD5 were being a primipara [adjusted odds ratio (aOR), 2.08; 95% confidence interval (CI), 1.03-4.20, P < 0.05], preoperative presence of chronic pain (OR, 4.44; 95% CI 1.82-10.81, P < 0.001), and NRS ≥ 2 on POD3 (aOR, 4.90; 95% CI 1.06-22.61, P < 0.05). Our findings suggest that assessing both acute postoperative pain and presence of PPD can inform the introduction of interventions in the early phase to prevent development of PPD after CS.