Function of a condenser in simple distillation

The condenser in a simple distillation is used to cool the vaporized liquid so that it can condense back into a liquid form and be collected.