Both mode-locked and Q-switched lasers produce short pulses of light, but they use different mechanisms to achieve this. Mode-locked lasers use a device called a mode-locker to produce a train of very short pulses, while Q-switched lasers use a fast shutter or other mechanism to block the laser output until the desired pulse energy has built up.