Complex sentence: Afghanistan had a UN recognized government led by Burhanuddin Rabbani, when it was dislodged from the capital Kabul it continued leading the war against the Taliban from the northern mountains of the country.
Split into simpler sentences: Afghanistan had a UN recognized government led by Burhanuddin Rabbani. When it was dislodged from the capital, Kabul, it continued leading the war against the Taliban from the northern mountains of the country.