The causal relationships between T2DM with esophageal and gastric cancer are partially mediated by decreased fasting insulin and increased glycated hemoglobin levels, respectively. The gene discussed is INS; the disease is gastric cancer.