A condenser is used for example in distillation, where the hot vapour needs to be cooled down back to liquid to be collected. It is also used in reflux where it makes sure that the solvent used does not boil and go away.