Qatada ibn Idris al-Hasani al-Alawi (Arabic: قتادة بن إدريس العلوي الحسني, 1130–1220) was the Sharif of Mecca, reigning from 1201 to 1220. He also founded the Banu Qatada dynasty and established a tradition of sharifs descended from him to rule Mecca which lasted until the office was abolished in 1925.
Qatada was born in the seaport city of Yanbu, where his family—who descended from Hasan ibn Ali—held a considerable estate since the Umayyad era. Without seeking permission from the Ayyubids who controlled the area, Qatada went on and subdued most of the Hejaz. He maintained a garrisoned fortress in Yanbu which made it possible to exact a good share of the profits of the Red Sea trade as it stopped at this port before proceeding to Egypt. Qatada may have taken part in the defense of Medina against the expeditionary Crusader force launched by Raynald of Châtillon.
Between the Ayyubid takeover of Mecca in 1175 and 1200, Iraqi princes, Medina-based sharifs, and the Ayyubids under Emir Tughtakin ibn Ayyub (Saladin's brother) fought for control of the city which was governed by Emir Mikhtar. In 1200-01, the dignitaries of Mecca chose Qatada, one of their own, to rule in Mikhtar's place. Qatada was recognized by the Ayyubid sultan of Egypt, al-Kamil, as the emir (prince) of Mecca. After gaining control over the Emirate of Mecca, Qatada extended his influence to Medina and Ta'if, and parts of Najd and Yemen. Dutch historian Snouck Hurgronje referred to him as a "political genius".