A coral reef is actually a complex of features, only part of which is a living coral or algal framework, although the other associated features result from this live segment. The accumulations of carbonate sand and mud provide a habitat for sea grasses and mangroves and for almost inconspicuous blue-green algal mats.