In cancer cells, glutamine is metabolized through a process known as glutaminolysis. This process involves the conversion of glutamine to glutamate by the enzyme glutaminase. Glutamate can then enter the tricarboxylic acid (TCA) cycle, where it contributes to the production of ATP, the primary molecule for energy transfer within cells. This metabolic flexibility allows cancer cells to thrive even in nutrient-poor environments.