Hafnium reacts directly with the halogens to form tetrahalides, and when heated it reacts with carbon, boron, sulfur, and silicon. Hafnium carbide is a refractory material with an extremely high melting point. Hafnium metal is produced by the Kroll process, in which a hafnium tetrahalide is reacted with magnesium or sodium metal.