The basic principle behind the distillation of process is that different liquids boil at different temperatures. So when a mixture is heated, the substance with lower boiling point starts to boil first and convert into vapours which can be then collected separately.