Residual stress refers to the internal stresses that remain in a material after it has undergone manufacturing processes such as deposition, annealing, or mechanical deformation. These stresses can significantly influence the material's mechanical properties, durability, and performance, especially at the nanoscale.