In 1200 circa, a sharif by the name of Qatada ibn Idris seized power and was recognised as Emir by the Ayyubid sultan.[10] He became the first of a dynasty that held the emirate until it was abolished in 1925.[2] The Mamluks succeeded in taking over the Hejaz, and made it a regular province of their empire after 1350.[11] Jeddah became a base of the Mamluks for their operations in the Red Sea and the Indian Ocean, leading it to replace Yanbu as the main maritime trade centre on the Hejaz coast. By playing off members of the sharifian house against one another, the Mamluks managed to achieve a high degree of control over the Hejaz.[11]