Complex sentence: The Khans of Hangu were on friendly terms with the Mughal and later Durrani empires.And were fierce rivals of the Brakazais that came after the Durranis.
Split into simpler sentences: The Khans of Hangu were on friendly terms with the Mughal and later Durrani empires. They were fierce rivals of the Brakazais, who succeeded the Durranis.