We propose a robust and reliable method of active mode locking of mid-infrared quantum cascade lasers and develop its theoretical description. Its key element is the use of an external ring cavity, which circumvents fundamental issues undermining the stability of mode locking in quantum cascade lasers. We show that active mode locking can give rise to the generation of picosecond pulses and phase-locked frequency combs containing thousands of the ring cavity modes.