A distiller works by steam.
Water is heated in a chamber and turned into vapor (steam). This water vapor rises leaving impurities behind in the boiling chamber. The purified vapor then enters a condenser where it is cooled and returned to the liquid state.
Some distillers cost as little as a hundred dollars.