During the mass extinction that wiped out the dinosaurs, one type of algae saved Earth’s oceans from collapse.