The Miller-Urey experiment simulated early Earth conditions to test if organic molecules could form from inorganic precursors. Water vapor is mixed with a reducing gas mixture and subjected to electrical sparks. A condenser cools the reacted gas to a liquid that can be sampled to determine its composition.