Answer:
In the distant past, algae helped turn the earth's then inhospitable atmosphere into one that could support modern life through photosynthesis, which plants use to turn carbon dioxide and sunlight into sugars and oxygen. Some of the algae sank to sea or lake beds and slowly became oil.