Residual stress is internal stress that remains in a material after manufacturing, machining, welding, forming, or heat treatment. It can affect dimensional stability, fatigue life, cracking risk, and thermal distortion.