More details can be foundĀ here.
The mixture is heated to a temperature at which one of the components will vapourise (or vapourise significantly more than the others) and the vapour is cooled back into a liquid by a condenser. As well as being a useful laboratory technique distillation is of huge industrial importance in the petrochemical and the drinks industries.