Coral reefs rely on a symbiosis between the coral itself and dinoflagellates, which harness sunlight to produce sugars, which they provide to the coral in return for protection and a place to grow.