Compressive residual stress is a type of internal stress that remains in a material after the original cause of the stress has been removed, often introduced intentionally to improve fatigue resistance and inhibit crack propagation. It is commonly applied through processes like shot peening or surface hardening to enhance the mechanical properties of metals and alloys.