Under those conditions, a great biological engine powered by the sun operated at the surface of the ocean, producing biological molecules in various organisms which continuously died off and settled to the bottom of the sea, mingling with silt, sand, and clay (but mostly silt and clay) eroded from great mountain ranges that are now long gone.