Ketogenesis is triggered by several factors, including a low carbohydrate diet, prolonged fasting, or uncontrolled diabetes. These conditions lead to a decrease in insulin levels and an increase in glucagon levels, which in turn promotes the mobilization of fatty acids from adipose tissue. These fatty acids are transported to the liver, where they undergo beta-oxidation to generate acetyl-CoA, the substrate for ketone body synthesis.