Amount of plant life and bacteria - plants take up harmful nitrates that can poison river life and turn them into harmless nitrogen gas. Bacteria work to filter the water. Having the perfect food chain balance helps a river ecosystem as well (such as not too many big fish per small fish)