since you gave a general question, my answer will be the same unless you specify more. Generall speaking annealing is used in material treatment to eliminate residual stresses, to increase order (crystallinity), and to modify some physical properties such as density and so on. Regards