Lactulose is used in constipation and liver disease. It may also be used to treat and prevent complications of liver disease (hepatic encephalopathy).