Answer : Sharks play a vital role in reef ecosystems by regulating prey populations, maintaining balance in the food web, and indirectly contributing to coral health by controlling the populations of species that prey on herbivorous fish, thus preventing overgrowth of algae that can harm corals.