The present invention relates to a composition for treating diabetes and a preparation method thereof as well as use thereof. The present invention provides a composition for treating diabetes, comprising the following active components based on the parts by weight: 10-100 parts of Pumpkin powder; 6-200 parts of spirulina; and 2-90 parts of Lychee Seed. The invention further provides the preparation method of the composition and the use of the medicament for treating diabetes. By taking the composition, the blood sugar concentration of diabetics can be effectively controlled, the complicating diseases of diabetics can be avoided, and the health of diabetics can be protected.