Raqqa's fortunes declined in the late 9th century because of continuous warfare between the Abbasids and the Tulunids, and then with the Shia movement of the Qarmatians. Under the Hamdānids in the 940s, the city declined rapidly. From the late 10th century to the early 12th century, Raqqa was controlled by Bedouin dynasties. The Banu Numayr had their pasture in the Diyār Muḍar, and the Banu Uqay had their centre in Qal'at Ja'bar.