This question either has a very simple answer or it is something much more complex. However, if an organism (think a certain species fish for example) wants to survive under water, it needs to stay in such water that corresponds to a certain degree of salinity, similar to the one of its native environment.
In short - salinity determines what living things can survive in it.
The most important factor which determines whether the living things can survive in a body of water s its salinity. The salinity level of the water is the factor at play in deciding which of the living organisms live inside the water. The salinity of the organisms has to be similar to the salinity level of the water in order for them to survive, otherwise, they will be dehydrated as a result of osmosis.
Mangrove forests were traditionally viewed as A. unproductive wastelands. People therefore reasoned that their removal would improve the health of their ecosystems, leading to their degradation.
Biodiversity comes from having multiple types of organisms. This also allows different organisms to eat and create nutrients that is needed by all other organisms in the ecosystem.