Fighting between the Communist government in Kabul and the Mujahideen forces continued until 1992 when the Mujahideen forces, led by Ahmed Shah Massoud, removed the Soviet-backed government of Mohammad Najibullah. By 1993, the rival factions who were vying for power agreed on the formation of a government with Burhanuddin Rabbani as president, but infighting continued. Lawlessness was rampant and became a major hindrance to trade between Pakistan and the newly independent Central Asian states. Pakistan appointed the Taliban to protect its trade convoys because most of the Taliban were Pashtun and were trained by the ISI and CIA in the 1980s and could be trusted by Pakistan. With Pakistan's backing, the Taliban emerged as one of the strongest factions in Afghanistan. Pakistan then decided to the end the infighting in Afghanistan and backed the Taliban in their takeover of Afghanistan to bring stability to its western border and establish a pro-Pakistan regime in Kabul.