Magnesium chloride (MgCl₂) is used as a tofu coagulant (nigari), mineral supplement, and magnesium fortification ingredient.