The occurrence of diabetes is related to genetics, environment, and lifestyle. To prevent diabetes, we should do the following: First, lifestyle, quit smoking and limit alcohol, maintain emotional stability, and maintain ideal weight to avoid obesity. Second, diet to carry out a low-salt, low-fat, low-sugar diet, control the total number of calories a day, to avoid hypertension, obesity, hyperlipidemia, etc. Third, reasonable and regular exercise, daily exercise at least half an hour, and last more than five times a week. Regular monitoring of blood glucose, blood pressure and blood lipids, once you have diabetes should be treated in a timely manner. In addition to the basic treatment of diet and exercise, the treatment of diabetes requires oral medication or insulin treatment under the guidance of a doctor according to weight, exercise, blood sugar and complications, and long-term attention to monitoring blood sugar.