To comprehensively analyze the impact of surgical compliance on the survival of patients with glioma and to explore the factors that influence surgical compliance. Clinical data of patients with glioma between 2004 and 2018 were collected from the Surveillance, Epidemiology, and End Results (SEER) database. Kaplan-Meier curves and Cox regression were used to analyze the effect of surgical compliance on overall survival (OS) and disease-specific survival (DSS). Multivariate Cox regression was used to select the prediction variables and construct the nomograms. The predictive power of these models was assessed using Harell's consistency index (C-index), decision curve analysis (DCA), receiver operating characteristic (ROC) curves, and calibration curves. Multivariate logistic regression was performed to analyze the related variables of surgical compliance, and 1:1 propensity score matching (PSM) was applied to evaluate the validity of the results of patients with favorable and poor surgical compliance. Among the 47,573 eligible glioma patients recommended for surgery, 46,380 (97.5%) were in the surgical compliance group, while 1193 (2.5%) were in the noncompliance group. Surgical compliance was an independent prognostic factor for glioma patients, as indicated by multivariate Cox regression analysis that patients with surgical compliance had worse OS (hazard ratio [HR] 1.924; 95% confidence interval [CI] 1.800-2.056, p < 0.001) and DSS (HR 1.718; 95% CI 1.592-1.853, p < 0.001) in comparison to those without surgical compliance. A nomogram was developed and internally validated to be able to predict glioma prognosis. The nomogram can well predict patients' OS (C-index: 0.745) and DSS (C-index: 0.744). ROC curve, DCA curve, and calibration curve were applied to further assess the accuracy of the nomogram. Poor surgical compliance was found to be related to older age, female gender, tumor diameter, grade II or higher, poor grading, tumor location in the cerebellum and brainstem, and low household income. Surgical compliance is an independent prognostic factor for predicting the OS and DSS of patients with glioma, and good surgical compliance was significantly related to good survival.