Diabetes was induced by IR in HCC cells, and SHP2 was up‐regulated or down‐regulated in the cells, while diabetic model rats were treated with SHP2 inhibitor. This evidence concerns the gene PTPN11 and diabetes mellitus.