Type 2 diabetes occurs as a result of combination of environmental and behavioral factors such as sedentary lifestyle, junk food, and obesity in a genetically predisposed individual.