Whilst you can't control all risk factors for type 2 diabetes, you can take steps to help ward off the disease.
The common risk factors for type 2 diabetes:
Being overweight or obese.
Having blood pressure of 140/90 or higher, or high cholesterol.
Leading a sedentary lifestyle.
Having cardiovascular disease.
Being age 45 or older.
Having an immediate family member with diabetes.
Having had a baby weighing more than 9 pounds, or having had gestational diabetes.