Ketone bodies are a group of three water-soluble molecules (acetoacetate, beta-hydroxybutyrate, and acetone) that are produced by the liver as a byproduct of the breakdown of fatty acids through a process called beta-oxidation. They serve as an alternative energy source when glucose is scarce, such as during fasting or starvation.