The purpose of tempering is to reduce the hardness of steel by relieving the stresses in the material. The process involves heating the steel to a temperature below the transformation range and then cooling it slowly in air.