The Afghan military (Pashto: D fGnstn MslH'hwkh), was founded in 1709, when the Hotaki Dynasty was established in Kandahar. It was followed by the Durrani empire. With the help of the British, the Afghan military was reorganized in 1880 when Amir Abdur Rahman Khan was the country's ruler. The Soviet Union provided almost all of the weapons, training, and military requirements between the 1950s to 1970s. The Soviet-backed Afghan Armed Forces engaged with multi-national mujahideen organizations, which were then supported by the United States, Pakistan, and other countries, in heavy fighting from 1978 to 1992. The 1992 resignation of President Najibullah and the cessation of Soviet support saw the Afghan military split into different parts.