Type 2 diabetes generally arises from an initial state of insulin resistance that coincides with a gradual decline in insulin secretion due to beta-cell dysfunction. Together, these factors contribute to impaired glucose tolerance and eventually hyperglycemia.