what us the goal of distillation
To separate off different products in order of their boiling points. You do it by a process of heating and cooling in a horizontal condenser usually.