This study aimed to explore the correlation between diabetes mellitus (DM) and gallbladder cancer (GBC) in an epidemiological setting. The study summarized the clinical and laboratory data of 2210 GBC Chinese patients in the authors' hospital. A total of 17 influencing factors for GBC, including gender, body mass index (BMI), fasting blood glucose (FBG), fasting insulin (FINS), the homeostasis model assessment of insulin resistance (HOMA-IR), retinol-binding protein 4 (RBP4), and lipid indexes were analyzed using unconditional logistic regression analysis. Based on the results of univariate logistic regression, the risk of GBC was significantly and positively correlated with serum triglyceride, low-density lipoprotein, FINS, HOMA-IR, being female, BMI, DM, non-alcoholic fatty liver disease, and gallbladder stone disease (GSD), and significantly negatively correlated with high-density lipoprotein and FBG concentrations in serum, as well as hypertension. According to multivariate analysis, FINS was significantly positively associated with GBC risk, while DM showed an insignificant negative association; FBG was also not important. The most significant independent factor of GBC risk in patients with DM was HOMA-IR. Fasting blood glucose levels showed a significant negative relationship with GBC in patients with DM. In addition, this study indicated a significantly negative association between serum RBP levels and GBC. The findings of the current study revealed that the efficient treatment of insulin resistance is an important approach for decreasing GBC risk, as opposed to lowering blood sugar only, particularly in patients with DM. Interestingly, FBG may have had an inverse association with the development of GBC in patients with type 2 DM. Of note, the study found that a dramatic initial drop in RBP may help predict the occurrence of GBC.