The process of reverse osmosis involves water being pushed through a semipermeable membrane, which allows only water molecules to pass through while blocking larger contaminants. This membrane acts as a barrier to contaminants such as bacteria, viruses, and dissolved salts, which are then flushed away with the wastewater.