Coral reefs are affected by habitat loss in a number of ways. One way is that they can die from being out of the water for too long. They also can bleach when the ocean becomes too warm. Habitat loss can also mean that there is less food available for the coral, and it can make them more susceptible to disease.