Read the following passage:
In the vast expanse of the ocean, the coral reefs serve as a bustling metropolis for countless marine species. These underwater structures are not only crucial for the fish that inhabit them but also pave the way for biodiversity and ecological balance. Without these reefs, many marine organisms would struggle to survive.
What is the primary purpose of the coral reefs as mentioned in the passage?