Most people in Afghanistan opposed the sudden Soviet presence in their country. For nearly a decade, anti-Communist Islamic forces known as "Mujahideen" were trained inside neighboring Pakistan to fight the Soviets and the Afghan government. The United States and other anti-Soviet countries supported the Mujahideen. In the long war, over one million Afghan civilians were killed. The Soviet Army also lost more than 15,000 soldiers in that war. Millions of Afghans left their country to stay safe in neighboring Pakistan and Iran. In 1989 the Soviet Army withdrew the last of its troops.