The Sharif of Mecca (Arabic: شريف مكة, Sharīf Makkah) or Hejaz (Arabic: شريف الحجاز, Sharīf al-Ḥijāz) was the title of the leader of the Sharifate of Mecca, traditional steward of the holy cities of Mecca and Medina. The term sharif means "noble" in Arabic and is used to describe the descendants of Prophet Muhammad's grandson al-Hassan ibn Ali.
The Sharif was charged with protecting the cities and their environs and ensuring the safety of pilgrims performing the Hajj. The title is sometimes spelled Sheriff or Sherif, with the latter variant used, for example, by T. E. Lawrence in Seven Pillars of Wisdom. The common law political and legal office of sheriff found in some anglophone countries is unrelated.
The office of the Sharifate of Mecca dates back to the late Abbasid era. Until 1200, the Sharifate was held by a member of the Hawashim clan, not to be confused with the larger clan of Banu Hashim to which all Sharifs claim descent. Descendants of the Banu Hashim continued to hold the position until the 20th century on behalf of various Muslim powers including the Ayyubids and the Mamelukes. In 1517, the Sharif acknowledged the supremacy of the Ottoman Caliph, but maintained a great degree of local autonomy. During the Ottoman era, the Sharifate expanded its authority northwards to include Medina, and southwards to the frontiers of 'Asir, and regularly raided Nejd.