Annealing is a heat treatment that involves heating a material to above its critical temperature, maintaining that temperature, and then slowly cooling. This process allows atoms to migrate and break up dislocations within the material's crystal lattice. As a result, the material becomes softer and more ductile as hardness decreases and internal stresses are reduced. There are three main stages of annealing: recovery, where defects are removed; recrystallization, where new defect-free grains nucleate and grow; and grain growth, where the grain size increases. Annealing is commonly used to improve the workability and machinability of metals like steel and copper.