The causes of diabetes are not completely understood, but it is thought to be a combination of genetics and environmental factors, such as diet and activity levels. A person’s age, weight, family history of diabetes, ethnicity, and certain diseases that affect the pancreas or liver also affect the risk of developing diabetes.