section_path: History/Middle Ages and rise of Islam
section_name: Middle Ages and rise of Islam
paragraph_text: Middle Ages and rise of Islam
  
  Shortly before the advent of Islam, apart from urban trading settlements (such as Mecca and Medina), much of what was to become Saudi Arabia was populated by nomadic pastoral tribal societies. The Islamic prophet Muhammad was born in Mecca in about 570 CE. In the early 7th century, Muhammad united the various tribes of the peninsula and created a single Islamic religious polity. Following his death in 632, his followers expanded the territory under Muslim rule beyond Arabia, conquering territory in the Iberian Peninsula in the west to parts of Central and South Asia in the east in a matter of decades. Arabia became a more politically peripheral region of the Muslim world as the focus shifted to the newly conquered lands.
  
  Arabs originating from modern-day Saudi Arabia, the Hejaz in particular, founded the Rashidun (632–661), Umayyad (661–750), Abbasid (750–1517), and the Fatimid (909–1171) caliphates. From the 10th century to the early 20th century, Mecca and Medina were under the control of a local Arab ruler known as the Sharif of Mecca, but at most times the sharif owed allegiance to the ruler of one of the major Islamic empires based in Baghdad, Cairo or Istanbul. Most of the remainder of what became Saudi Arabia reverted to traditional tribal rule.
  
  For much of the 10th century, the Isma'ili -Shi'ite Qarmatians were the most powerful force in the Persian Gulf. In 930, the Qarmatians pillaged Mecca, outraging the Muslim world, particularly with their theft of the Black Stone. In 1077–1078, an Arab sheikh named Abdullah bin Ali Al Uyuni defeated the Qarmatians in Bahrain and al-Hasa with the help of the Seljuq Empire and founded the Uyunid dynasty. The Uyunid Emirate later underwent expansion with its territory stretching from Najd to the Syrian Desert. They were overthrown by the Usfurids in 1253. Usfurid rule was weakened after Persian rulers of Hormuz captured Bahrain and Qatif in 1320. The vassals of Ormuz, the Shia Jarwanid dynasty came to rule eastern Arabia in the 14th century. The Jabrids took control of the region after overthrowing the Jarwanids in the 15th century and clashed with Hormuz for more than two decades over the region for its economic revenues, until finally agreeing to pay tribute in 1507. Al-Muntafiq tribe later took over the region and came under Ottoman suzerainty. The Bani Khalid tribe later revolted against them in the 17th century and took control. Their rule extended from Iraq to Oman at its height, and they too came under Ottoman suzerainty.