Complex sentence: The river became the lifeline for many poor urban squatter villages, but it was these villages that were suffocating the river and in turn destroying their own livelihoods.
Split into simpler sentences: The river became the lifeline for many urban squatter villages. And it was these villages that were suffocating the river and, in turn, destroying their own livelihoods.