Islam in the Ottoman Empire
Islam was the official religion of the Ottoman Empire. The highest position in Islam, "caliphate", was claimed by the sultan, after the defeat of the Mamluks which was established as Ottoman Caliphate. The Sultan was to be a devout Muslim and was given the literal authority of the Caliph. Additionally, Sunni clerics had tremendous influence over government and their authority was central to the regulation of the economy. Despite all this, the Sultan also had a right to decree, enforcing a code called Kanun (law) in Turkish. Additionally, there was a supreme clerical position called the Sheykhulislam ("Sheykh of Islam" in Arabic). Minorities, particularly Christians and Jews but also some others, were mandated to pay the jizya, the poll tax as mandated by traditional Islam.
Sunni Islam
The fall of the Ottoman, the biggest Sunni empire in the world for six centuries, the mightiest power in the Mediterranean world and one of the important participants in World War I which joined the war on the side of the Central Powers, bringing caliphate to an end was an epochal event. This resulted in Sunni protests in far off places including the Khilafat Movement in India, which was later on upon gaining independence from Britain divided into Sunni dominated Pakistan and secular India. Pakistan, the most populous Sunni state at its birth, however later got partitioned into Pakistan and Bangladesh. The demise of Ottoman caliphate also resulted in the emergence of Saudi Arabia, a dynastic absolute monarchy with the support of the British and Muhammad ibn Abd al-Wahhab, the founder of Wahhabism. This was followed by a considerable rise in Wahhabism, Salafism and Jihadism under the influence of the preaching of Ibn Taymiyyah a follower of Ahmad bin Hanbal.The expediencies of cold war resulted in encouragement of Afghan refugees in Pakistan to be radicalised, trained and armed to fight the communist regime backed by USSR forces in Afghanistan giving birth to Taliban. The Taliban wrestled power from the communists in Afghanistan and formed a government under the leadership of Mohammed Omar, who was addressed as the Emir of the faithful, an honorific way of addressing the caliph. The Taliban regime was recognised by Pakistan and Saudi Arabia till after 9/11 perpetrated by Osama bin Laden a Saudi national by birth harboured by the Taliban took place, resulting in a war on terror launched against the Taliban.