Annealing and tempering are used to soften metal for improved ductility and machinability, as well as to relieve residual stress. In contrast to hardening, annealing involves a much slower heating step followed by gradual cooling of the metal. Tempering refers to a reheating and slow cooling of metal which has become too brittle as a result of a hardening process.