Purify rainwater using sand and charcoal filters to remove impurities, or boil it to kill bacteria. You can also use UV light purification or sun exposure for disinfection.