The Sharifate of Mecca (Arabic: شرافة مكة, romanized: Sharāfat Makka) or Emirate of Mecca was a state, semi-sovereign for much of its existence, ruled by the Sharif of Mecca. A sharif is a descendant of Hasan ibn Ali, Muhammad's grandson. In Western sources, the prince of Mecca was known as Grand Sherif, but Arabs have always used the appellation "Emir".
The Sharifate existed from about 967 to 1916, when it became the Kingdom of Hejaz. From 1201, the descendants of the Sharifian patriarch Qatada ruled over Mecca, Medina and the Tihamah in unbroken succession until 1925. Originally a Zaydi Shi'ite emirate, the Hasanid Sharifs converted to the Shafi'i rite of Sunni Islam in the late Mamluk or early Ottoman period.