We aimed to examine whether preoperative psychiatric morbidities affect 30-day postoperative mortality. Using a nationwide registration database in South Korea, the study included all patients who underwent curative cancer surgery from 1 January 2002 to 31 December 2019. Patients underwent surgery for breast, laryngeal, lung, thyroid, gastric, colorectal, esophageal, liver, pancreatic, kidney, bladder, testicular, prostate, vulvar, uterine, or brain cancer. Depression, anxiety disorder, substance abuse, and post-traumatic stress disorder were considered preoperative psychiatric morbidities. Among the 944,794 patients in the final analysis, 5490 (0.6%) died within 30 days of the surgery, and 24,370 (2.6%) had preoperative psychiatric morbidities. Multivariable logistic regression analysis showed that preoperative psychiatric morbidities were associated with a higher (adjusted odds ratio [aOR]: 1.23; 95% confidence interval [CI]: 1.09, 1.39; p = 0.001) 30-day mortality rate than the rate noted for patients without preoperative psychiatric morbidities. This association was significant in the breast (aOR: 3.31, 95% CI: 1.36, 8.07; p = 0.009), lung (aOR: 1.54, 95% CI: 1.19, 2.01; p = 0.001), and kidney (aOR: 1.87, 95% CI: 1.06, 3.31; p = 0.03) cancer groups in the subgroup analyses. In South Korea, preoperative psychiatric morbidities are considered to be associated with increased 30-day postoperative mortality.