At this time the Swat tribes were engaged in one of their periodical attempts to free the right bank of their valley from the yoke of the Nawab of Dir, and in order to bring about the union necessary to achieve this object, they determined to take unto themselves a king. Once in the time of the Akhund, when they feared a British invasion, they had a king for a few years, and it was his grandson they now called in, Abdul Jabar Shah, a Syed from Sathana in Amb territory on the right bank of the Indus. The Mianguls at once began to work against him, and allied themselves with the Nawab of Dir; they were however defeated and for a time turned out of Saidu. They were soon back again, and it was not long before the Swatis grew tired of Abdul Jabar Shah, who had not proved successful as a leader in the field. In September 1917 they quietly escorted him out of their country and invited the Mianguls to take his place as joint rulers. The Mianguls readily accepted the offer and were not slow in consolidating their position and taking the field against the Nawab of Dir. It was perhaps providential for the future peace of the valley that the younger Miangul, Shirin, was killed in a fight with the Nawab’s forces in 1918, and that Gul Shahzada was left in sole and undisputed authority.
The Nawab of Dir continued his efforts to re-conquer his revolted provinces on the right bank of the Swat river, but in August 1919 he suffered a crushing defeat in the Harnawai valley, as a result of which Gul Shahzada was able to eradicate the last remnants of his authority over the right-bank Swat tribes and even to occupy Adinzai, which had long been regarded as an integral part of Dir State, and through which a section of the Chitral road runs. Fighting continued in Adinzai till 1922, when Government was forced to intervene and the Nawab of Dir and Gul Shahzada were induced to sign an agreement whereby Adinzai was handed back to the Nawab, and each ruler undertook to refrain from interference in the other’s territory. A limit was thus set to the expansion of the new State towards the west. North of the Swat river it marched with Dir State, the boundary from north to south being the main Swat-Panjkora watershed as far as Adinzai, and then a subsidiary watershed running down to the Swat river between Adinzai and Shamzai; while south of the Swat river the Landakai and Mora ridges separated it from Ranizai, a tract which was taken under the protection of the British Government when the Malakand was occupied in 1895. Adinzai, Shamzai, and Ranizai are names which denote originally certain sub-sections of the Akozai tribe, but are also applied geographically, as is often the case, to the tracts allotted to the same sub-sections in the original distribution of Yusufzai land.