The invention discloses medicine used for treating diabetes. The medicine is prepared by carrying out scientific and reasonable compatibility on coptis chinensis, radix scutellariae, sapium baccatum, heteropanax fragrans, radix bupleuri, trichosanthes kirilowi, oyster, rhizoma anemarrhenae, Chinese yam, gypsum, borassus flabellifer L, liquorice, pseudo-ginseng, platycodon gradiflorus, hedychium coronarium, rhus coriaria fruit, wild semen canavaliae, rhizoma polygonati, ophiopogon japonicus, lycium, radix paeoniae alba, wild chrysanthemum, cordyceps sinensis, salvia aerea levl, houttuynia cordata, honeysuckle, dandelions, folium ginkgo, bitter gourd, radix puerariae, hairyvein agrimonia, coix seeds, mahonia fortuneiFedde, borneol flakes, fewflowerLysionotus, folium sauropi, wingedtooth laggera herb, poncirus trifollata(L.)Raf, bark or root of littleflower stringbush, cortex lycii radicis, dry radix rehmanniae, great burdock achene, herba epimedii, fructus corni and the like according to the assistant and guide principle. The medicine has the functions of invigorating spleen, supplementing qi, warming yin and tonifying kidney, after a diabetes patient takes the medicine, blood glucose and blood lipid of the patient can be effectively reduced, and complications are reduced or relieved.