Photothermal nanoparticles are coated on a hydrophobic membrane. Sunlight reacts with the nanoparticles generating heat on the membrane’s surface. The heat evaporates the feed water generating clean water vapor that flows through the membrane, leaving the dirty feed water behind.