Diabetic ketoacidosis is caused by the body not having enough insulin or not being able to use insulin correctly. This can happen for many reasons.