Coral reefs are composed of coral animals that build massive calcium skeletons which form the basic framework of the reef. Corals require specific environmental conditions such as warm water temperatures between 18.5-30°C, clear water for photosynthesis, and wave energy. They reproduce both sexually through broadcast spawning and larval settlement, and asexually through budding and fragmentation. Coral reef ecosystems include mangroves, seagrass beds, and lagoons which provide habitat and nursery grounds for many species and cycling of nutrients.