What does coral reefs need to survive?

the coral reefs need fishes to survive. the fishes help the coral reefs survive and the fishes get a home