Between the
Ayyubid takeover of Mecca in 1175 and 1200,
Abbasid 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, Qatadah extended his influence to Medina and
Ta'if, and parts of
Najd and
Yemen. 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. In 1205, Qatada and the
Sharif of Medina,
Salim ibn Qasim al-Husayni, entered into conflict. Each gathered a large army and battled at the outskirts of Medina. After visiting and praying at the Islamic prophet Muhammad's chamber in the
Masjid an-Nabawi, Qatada proceeded to confront Salim. The latter drove him back and pursued Qatadah to Mecca. Salim besieged him there, but Qatada sent letters to Salim's commanders requesting that they defect. Salim's commanders consequently became inclined to support Qatada. After realizing this, Salim withdrew to Medina, and Qatada's position in the region was strengthened. Qatada's growing autonomy and actions troubled the
Abbasid caliph in
Baghdad, the Ayyubid sultan in
Cairo, and the Ayyubid emir in Yemen. Challenges from those authorities coincided with the annual
Hajj pilgrim caravan to Mecca. Accordingly, caravans from Cairo, Baghdad, and
Damascus were accompanied by whatever number of troops the caliph or sultan deemed necessary to deliver a message to Qatada. In 1212, an assassination attempt on Qatada occurred during the Hajj. Qatada suspected the Abbasids were responsible and ordered his
Nubian slave troops to attack the Baghdadi caravan, although they had already fled to join the Damascene caravan where they gained protection from Saladin's mother. Qatada demanded a compensation of 100,000
dinars for calling off the attack on the caravan, but when Saladin's mother could only raise 30,000 dinars, Qatada desisted nonetheless. However, he also promised to kill any pilgrim coming from Baghdad during the following year. == Personal life ==