Type 2 diabetes occurs when the body fails to effectively