Following their 976 defeat by the Abbasids, the Qarmatians were overthrown by the Arab Uyunid dynasty of al-Hasa, who took over the entire Bahrain region in 1076. The Uyunids controlled Bahrain until 1235, when the archipelago was briefly occupied by the Persian ruler of Fars. In 1253, the Bedouin Usfurids brought down the Uyunid dynasty, thereby gaining control over eastern Arabia, including the islands of Bahrain. In 1330, the archipelago became a tributary state of the rulers of Hormuz, though locally the islands were controlled by the Shi'ite Jarwanid dynasty of Qatif.