Coal is used to heat iron metal so it becomes malleable and can be shaped. Iron is heated so it can be hammered and formed into different objects more easily. Coal becomes coke through the removal of impurities and moisture in a high-temperature, low-oxygen process. The blacksmith heats the iron, hammers it when hot to shape it, then cools it to harden the new form in a process that requires air and utilizes the properties of iron being able to change shape when hot but hold it when cooled. Coke is a more environmentally friendly fuel than coal due to the removal of impurities and moisture in its production.