Distillation is a purification technique that separates the components of a liquid mixture based on their different boiling points. It works by selectively heating a liquid to create vapor, and then cooling the vapor back into a purified liquid (the distillate) in a separate container.