This drug is used by mouth or rectally to treat or prevent complications of liver disease (hepatic encephalopathy). It does not cure the problem, but may help to improve mental status. Lactulose is a colonic acidifier that works by decreasing the amount of ammonia in the blood. It is a man-made sugar solution.