The process of restructuring and optimising existing code to improve readability, performance, or maintainability.