Mangrove trees protect against flooding, but their populations have shrunk significantly due to habitat loss.