Distillation is the process of removing impurities from a liquid by heating it and then cooling it off. The image to your left shows how it can be implemented in the game.
The photo to your left shows how you can build one in the game.