Optimization in programming is the process of modifying a software system to execute faster and become more efficient by minimizing the use of available computing resources.