Complex sentence: As the Chenab moved away to the West it lost its importance as a river port while the nearby trading town of Pir Mahal also lost customers and fell into decline.
Split into simpler sentences: As the Chenab River moved away to the west, the town it lost its importance as a river port. The nearby trading town of Pir Mahal also lost customers and fell into decline.