Maintaining an ideal body weight and an active lifestyle may prevent the onset of type 2 diabetes. Currently there is no way to prevent type 1 diabetes.