What does a Smithing Table do in Minecraft?

In Minecraft, a smithing table is used to upgrade tools and weapons from their base material to a higher tier material, such as transforming an iron sword into a diamond sword. To produce the upgraded item, players must set the basic item and the material they intend to upgrade it to in the smithing table.