Thermal: the use of heat to evaporate water, collecting the fresh water as condensation and then leaving behind the salts.
Membrane: Reverse osmosis. Water is pushed through a semipermeable membrane, where the pores are small enough for only the water to fit through, not the salts.