Lactulose is a synthetic sugar used to treat constipation. It is broken down in the colon into products that pull water out from the body and into the colon. This water softens stools. Lactulose is also used to reduce the amount of ammonia in the blood of patients with liver disease.