Coral reefs are vital marine ecosystems formed by coral polyps that build limestone structures, providing habitat for diverse marine life. There are two main types of corals, hermatypic and ahermatypic, which have different environments and relationships with algae. Coral reefs face threats from human activities and climate change, leading to issues like coral bleaching and ecological imbalance.