Corals need a shallow place to live in, an ample amount of sunlight and warm water conditions in order to grow. They produce a hard structure that encloses its body. When they die, the hard structure remains and new coral animals are attached to it. As a result, coral reefs are formed over time.