Complex sentence: After their defeat, the Niazis fled to Dhankot (presently Mianwali near the Indus River) their country they defeated an army of Islam Shah.
Split into simpler sentences: After their defeat, the Niazis fled to Dhankot (presently Mianwali near the Indus River). They defeated an army of Islam Shah.