Diabetes is inherited, but diabetes is the result of a combination of genetics and environment. Type 2 diabetes, in particular, has a strong genetic predisposition in its onset, especially nowadays with the obvious genetic maladaptations that occur with lifestyle changes and urbanization, such as obesity, reduced physical activity, mental stress, and changes in diet quality, showing a stronger genetic and racial predisposition. In contrast, the prevalence levels in developed Western countries and Western Europe, for example, are more stable and do not have the same genetic maladjustment that occurs in developing countries or with lifestyle changes and urbanization, so they are more prone to type 2 diabetes. type 1 diabetes has a weaker association with race and genetics, but a clear association can be seen between the onset and specific genotypes. In conclusion among the development of type 1 diabetes, environmental factors mainly viral infections are the causative factors. So diabetes is hereditary, but not every family with parents or siblings who have diabetes will necessarily get it themselves. Therefore, lifestyle and the environment are particularly important. It is important to pay attention to environmental factors, such as obesity, physical activity, reduction of mental stimulation, and diet, so that the incidence of diabetes can be reduced by giving up smoking and limiting alcohol.