Magnesium chloride is E511. It is an ingredient in infant formulas. It is used as acidity regulator. It is added to purified water to produced mineral water. E511 is an important coagulant used in the preparation of tofa from soya milk. It is used both as a colour retention agent and firming agent in canned peas. It acts as a stabilizer in foods.