How does reverse osmosis purify water?

Reverse osmosis purifies water by forcing it through a semi-permeable membrane that only allows water molecules to pass through. The membrane blocks contaminants such as minerals, bacteria, and other impurities, effectively removing them from the water. The pressure used to push the water through the membrane is typically provided by a pump, and a series of filters or pretreatment processes may be used to remove larger particles before the water reaches the membrane. The end result is water that is more pure and free of contaminants, making it suitable for drinking, cooking, and other applications.