This site tells the story of the history of the universe. Click Earlier and Later to follow the story.
Note: Many facts have been simplified to make them easier to understand. Our new free weekly podcast Time Crystal tells this story as sci-fi fantasy
The sticky hydrogen bonds between water molecules in the atmosphere gathered them together into droplets. The drops fell to Earth as rain, taking the other molecules from the early atmosphere with them.