Mode locking is a technique widely used in ultrafast lasers. The modes of a laser (standing waves) are characterized by random phases. When they interfere with each other they generate a continuous beam. However, by fixing the phase difference between the different modes, they start interfering constructively periodically which results in sharp peaks of intensity or what is known as a pulse.