Type I diabetes occurs when a person's body can't make insulin anymore for genetics reasons, so it is treated by insulin injection.
Type II diabetes occurs when the body can't make insulin but it is not caused by genetics, it's caused by diet and life style, so it is treated by healthy diet and exercise.