Political aspects of Islam are derived from the Qur'an, the Sunnah (the sayings and living habits of Muhammad), Muslim history, and elements of political movements outside Islam.
Traditional political concepts in Islam include leadership by elected or selected successors to the Prophet known as Caliphs, (Imamate for Shia); the importance of following Islamic law or Sharia; the duty of rulers to seek Shura or consultation from their subjects; and the importance of rebuking unjust rulers.
A significant change in the Islamic world was the abolition of the Ottoman caliphate in 1924. In the 19th and 20th century, common Islamic political theme has been resistance to Western imperialism and enforcement of Sharia through democratic or militant struggle. The defeat of Arab armies in the Six Day War, the end of Cold War and collapse of the Soviet Union with the end of communism as a viable alternative has increased the appeal of Islamic movements such as Islamism, Islamic fundamentalism and Islamic democracy, especially in the context of popular dissatisfaction with secularist ruling regimes in the Muslim world.
Origins of Islam as a political movement are to be found in the life and times of Islam's prophet Muhammad and his successors. In 622 CE, in recognition of his claims to prophethood, Muhammad was invited to rule the city of Medina. At the time the local Arab tribes of Aus and Khazraj dominated the city, and were in constant conflict. Medinans saw in Muhammad an impartial outsider who could resolve the conflict. Muhammad and his followers thus moved to Medina, where Muhammad drafted the Medina Charter. This document made Muhammad the ruler, and recognized him as the Prophet of Allah. The laws Muhammad established during his rule, based on the revelations of the Quran and doing of Muhammad, are considered by Muslims to be Sharia or Islamic law, which Islamic movements seek to establish in the present day. Muhammad gained a widespread following and an army, and his rule expanded first to the city of Mecca and then spread through the Arabian peninsula through a combination of diplomacy and military conquest.