In 1919, King Amanullah Khan rose to power during the Third Anglo-Afghan War when Afghanistan's capital and its eastern city of Jalalabad were air raided by the No. 31 and 114 squadrons of the British Royal Air Force in May 1919. Amanullah Khan defeated the British and began modernization of the country after the signing of the Treaty of Rawalpindi. In the late 1920s, switching of power took place until Zahir Shah became the youngest new King.