Medina is the second holy city of Islam. The Prophet Muhammad migrated to Medina from Mecca, and taught there for some years before his triumphant return to Mecca. The city is commonly visited as part of the Hajj pilgrimage.
In the beginning of 20th century during World War I Medina witnessed one of the longest sieges in history. Medina was a city of the Ottoman Empire. Local rule was in the hands of the Hashemite clan as Sharifs or Emirs of Mecca. Fakhri Pasha was the Ottoman governor of Medina. Ali bin Hussein, the Sharif of Mecca and leader of the Hashemite clan, revolted against the caliph and sided with Great Britain. The city of Medina was besieged by his forces and Fakhri Pasha tenaciously held on during the Siege of Medina from 1916 but on 10 January 1919 he was forced to surrender. After the First World War, the Hashemite Sayyid Hussein bin Ali was proclaimed King of an independent Hejaz, but in 1924 he was defeated by Ibn Saud, who integrated Medina and Hejaz into his kingdom of Saudi Arabia.