The network pharmacology results revealed that IL6 and TNF are the core targets of Rhizoma Coptidis in the treatment of T2DM, and the TNF signalling pathway is its main intervention pathway. Here, TNF is linked to type 2 diabetes mellitus.