In summary, our study suggests that gastrectomy has an advantage over ESD in terms of better diabetes management and weight reduction in EGC patients with T2DM and that this advantage can be more prominent in those with higher leptin levels. Here, LEP is linked to diabetes mellitus.