Healthy coral reefs help to absorb wave impact along shores, which in turn helps to prevent beach erosion.