Ketoacidosis can be caused by not getting enough insulin, having a severe infection or other illness, becoming severely dehydrated, or some combination of these things. It can occur in people who have little or no insulin in their bodies (mostly people with type 1 diabetes but it can happen with type 2 diabetes, especially children) when their blood sugar levels are high.