Cells obtain energy primarily through the process of cellular respiration, which includes glycolysis, the citric acid cycle (Krebs cycle), and the electron transport chain. During glycolysis, glucose is broken down into pyruvate, generating small amounts of ATP. The pyruvate then enters the mitochondria, where the citric acid cycle produces electron carriers that drive the electron transport chain, generating a large amount of ATP.