Milk of magnesia, also known as magnesium hydroxide, can act as an antacid or as a saline laxative. This type of laxative works by drawing water into a person’s bowels to help loosen stool.