Chemotherapy (CT) remains the primary treatment for locally advanced unresectable pancreatic cancer (LAUPC) and metastatic pancreatic cancer (MPC). The role of radiotherapy (RT) in these conditions remains unclear. This study compares the outcomes of CT alone versus CT combined with RT (combined-modality therapy [CMT]) in LAUPC and MPC patients. We conducted a retrospective analysis of LAUPC and MPC patients treated with either CT or CMT from a single institution and Surveillance, Epidemiology, and End Results (SEER) database. Kaplan-Meier curves and Cox hazards models evaluated the association between treatment modalities and overall survival (OS). Propensity score matching (PSM) ensured balanced comparisons. Landmark analysis addressed immortal time bias. Subgroup analyses were based on clinical characteristics. eXtreme Gradient Boosting (XGBoost) and Shapley Additive Explanations (SHAP) assessed outcome prediction and influence of significant predictors. The study included 102 patients receiving CMT and 155 receiving CT at single institution, along with 1733 CMT and 9310 CT patients from the SEER dataset. In the single-institution cohort, CMT showed superior survival compared to CT both before (median OS: 20.5 vs. 11.5 months, hazard ratio [HR]: 0.47, 95% CI: 0.34-0.65, P=0.001) and after PSM (median OS: 22.2 vs. 11.8 months, HR: 0.49, 95% CI: 0.30-0.79, P=0.003). Multivariate analyses confirmed that CMT was independently associated with improved OS both before (HR: 0.54, 95% CI: 0.38-0.77, P=0.001) and after PSM (HR: 0.45, 95% CI: 0.27-0.73, P=0.001). Landmark analysis indicated better OS for patients receiving CMT compared to CT alone. Subgroup analysis revealed an OS benefit for CMT across most subgroups. SHAP value analysis indicated that CMT was the most significant contributor to survival outcomes. SEER database validation confirmed these findings. This study demonstrates that CMT significantly improves OS in LAUPC and MPC patients compared to CT alone. Integrating RT with CT could be beneficial for treating LAUPC and MPC.