Water undergoes three phases of filtration. First, it is sent to a machine that filters out solids or other types of debris. Then, the water is sent to an underground tank where bacteria feed on contaminants. Lastly, the water is moved to either a body of water, such as an ocean or river, or to a cleaning tank, where it is further purified for other uses.