into several other regions had a lasting impact on Pakistan. PLO and Lebanese weapons captured by the Israelis in their invasion of Lebanon in June 1982 were of Soviet origin and were then covertly transferred into Afghanistan through Pakistan. Later, when American support for the Mujahideen became obvious, Stinger Missiles and other high-technology American weaponry were transferred through Pakistan into Afghanistan. However some of these weapons may have been siphoned off by the ISI for reverse engineering purposes. The arrival of the new high-technology weaponry proved to be quite helpful in organising stiff resistance against the Soviet Union. Many Army regulars fought in Afghanistan along with the resistance and contributed to the withdrawal of Soviet forces from Afghanistan in 1989. First Gulf War When Iraq occupied Kuwait, the Saudi government reached an agreement with Pakistan to have several brigades brought into the country to help in its defence. These brigades were placed under the orders of the Ministry of Defense and deployed in Tabuk and Khamis Mushayt. Taliban takeover of Afghanistan After the Soviet withdrawal, Pakistan for the first time since 1947, was not concerned about a threat on two fronts. Further, the emergence of five independent Muslim republics in Central Asia raised hopes that they might become allies and offer Pakistan both the political support and the strategic depth it lacked. As long as Afghanistan was in chaos, Pakistan would lack direct access to the new republics. 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. Pakistan solicited funds for the Taliban, bankrolled Taliban