Diabetic ketoacidosis (DKA) is a medical emergency that can happen in people with diabetes mellitus. DKA happens mostly in people with Type 1 diabetes, although it may happen in some people that have Type 2 diabetes.