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 the 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 the diabetes. By taking the composition, the blood sugar concentration of the diabetics can be effectively controlled, the complicating diseases of the diabetics can be avoided, and the health of the diabetics can be protected.