Titanium is produced through a multi-step process starting with ilmenite or rutile ores. The ores are first chlorinated to produce titanium tetrachloride, which is then purified through vacuum distillation. This purified titanium tetrachloride undergoes the Kroll process of magnesium reduction, where it is reacted with magnesium to produce titanium metal and magnesium chloride byproducts. The titanium metal sponge produced is then processed through leaching, drying, and distillation to remove impurities before final production of titanium.