Hepatic encephalopathy (HE) is a reversible neuropsychiatric syndrome seen in patients with liver disease. The pathogenesis of HE is incompletely understood, but several pieces of evidence identify ammonia as a key factor in the development of HE. The liver normally detoxifies ammonia produced in the gastrointestinal tract. However, in patients with cirrhosis, portosystemic shunting allows ammonia to bypass the liver and reach the systemic circulation and the brain. The accumulation of ammonia in the brain, through mechanisms not yet fully defined, lead to changes of consciousness, intellectual function, and behavior.