We give a necessary and sufficient condition for the compactness of composition operators on the Lorentz spaces.