Which ecosystem service is provided by coral reefs?

Coral reefs ensure against land subsidence.

Coral reefs protect mainland shorelines from coastal erosion.

Coral reefs provide water to irrigate crops.

Coral reefs provide materials to build human shelter.

Coral reefs protect mainland shorelines from coastal erosion.