The Islamic State (tribal) of Swat was established in 1849 under Sayyid Akbar Shah with Sharia remaining in force but the state was in abeyance from 1863 to 1915. The British recognized the state as a princely state in 1926. Following the Partition of India in 1947, the ruler acceded the state to Pakistan whilst retaining considerable autonomy. The ruler of Swat was accorded a 15-gun hereditary salute in 1966 but this was soon followed by the abolition of the state in 1969. The royal status of the former ruler was abolished in 1972, but the former ruling families are still accorded a high degree of respect by the people of Swat. The present mayor of Swat district is the grandson of the last ruler, Miangul Jehanzeb.