Magnesium chloride is used in antacid medications to relieve heartburn and indigestion. It helps neutralize excess stomach acid.