Molecular docking further showed berberine from mSMG had excellent binding capacity with TNF-α and might be involved in diabetes and insulin resistance. This evidence concerns the gene TNF and diabetes mellitus.