Genetic and environmental factors can both play a role. The most common risk factor is being overweight or having obesity.
People with a history of gestational diabetes or aspects of metabolic syndrome — such as high blood pressure and cardiovascular disease — also have a higher risk of developing diabetes.