For the AGC patients, high expression of STAT3, positive expression of pSTAT3, TNM stage, tumor size, and type 2- diabetes were all categorized as independent prognostic markers. Here, STAT3 is linked to type 2 diabetes mellitus.