The easiest way to produce potable water is to use groundwater from aquifers, usually, this is safe to drink once it's been treated with chlorine. Aquifers can sometimes be polluted, for example, with fertilisers from farms. The water from aquifers needs to be tested carefully.