Till 1880, Dir continued to be ruled by different chiefs. In 1881 Khan Umara khan of Jandool, captured Dir and brought all pity chiefs under his control. With in a period of three years, he extended Dir up to Swat and the present provincially administered tribal area of Malakand. He expelled the then ruler of Dir, Muhammad Sharif Khan from the state. The latter took up residence in Mardan district. In1895, getting alarmed at the growing influence of Umara Khan, the British government took a large force and defeated him in an engagement near Malakand. Umara Khan took asylum in Afghanistan, where he died subsequently. The British Government restored the former ruler, Muhammad Sharif Khan to the Gaddi of Dir. He was first called the Khan of Dir and latter elevated as Nawab. After the death of Muhammad Sharif Khan his son Muhammad Aurangzeb Khan and after his death, his son Nawab Muhammad Shah Jehan Khan, succeeded to the Gaddi of Dir. The Pakistan Government, therefore, in according with the wishes of the people of the state, deposed and removed him from the state, together with his second son, Khan Shahabuddin Khan of Jandool. The eldest son of the Nawab and their parents, Prince Muhammad Shah Khan Khusro, succeeded Nawab shah Jehan Khan in October 1961; Pakistan government recognized him as rightful ruler of the state. Dir, like other princely states acceded to Pakistan, of its inception in 1947. The princely status of Dir, along with the adjoining states of Swat and Chatral was brought to an end by a presidential declaration in 1969 and each one of them was merged with the then province of West Pakistan as separate administrative district. In1996 Dir district was bifurcated into two districts i.e Lower Dir and Upper Dir.