In principle yes, we could get all our oxygen from algae. Though we might be fine oxygen-wise, we probably wouldn’t be fine everything-else-wise. A lot of food chains would collapse, and a lot of ecosystem re-balancing would have to happen, and we might quickly find that a lot of other stuff we depend on to survive would be hard to come by.
Latest Answers