Type 2 diabetes is a result of both genetics and lifestyle. People who have relatives with diabetes type 2 are at an increased risk. They may develop diabetes if they have other risk factors in their lifestyle, for example obesity, or low amount of exercise.