Because corals are attached, taking root to the seafloor, people often think they are plants. Because many corals have hardened surfaces, they are sometimes mistaken as being rocks. However, unlike plants, corals do not make their own food using photosynthesis. And, unlike rocks, corals are very much alive. Corals are, in fact, animals.
Source: Ocean Exploration Facts