The process of removing impurities and contaminants from rainwater, making it safe for consumption or other uses.