In many epileptic patients, anticonvulsant drugs either fail adequately to control seizures or they cause serious side effects. An important adjunct to pharmacologic therapy is the ketogenic diet, which often improves seizure control, even in patients who respond poorly to medications. The mechanisms that explain the therapeutic effect are incompletely understood. Evidence points to an effect on brain handling of amino acids, especially glutamic acid, the major excitatory neurotransmitter of the central nervous system. The diet may limit the availability of oxaloacetate to the aspartate aminotransferase reaction, an important route of brain glutamate handling. As a result, more glutamate becomes accessible to the glutamate decarboxylase reaction to yield gamma-aminobutyric acid (GABA), the major inhibitory neurotransmitter and an important antiseizure agent. In addition, the ketogenic diet appears to favor the synthesis of glutamine, an essential precursor to GABA. This occurs both because ketone body carbon is metabolized to glutamine and because in ketosis there is increased consumption of acetate, which astrocytes in the brain quickly convert to glutamine. The ketogenic diet also may facilitate mechanisms by which the brain exports to blood compounds such as glutamine and alanine, in the process favoring the removal of glutamate carbon and nitrogen.