Complex sentence: Macrogols have been used as laxatives, i.e. to treat constipation.
Split into simpler sentences: Macrogols have been used as laxatives. It has been used to treat constipation.