Mangroves and seagrasses could be protected by valuing the carbon they store.