Jeddah
Under the Caliphates

Jeddah first achieved prominence around A.D. 647, when the third Muslim Caliph, Uthman Ibn Affan, turned it into a port making it the port of Makkah instead of Al Shoaib port, which was southwest of Makkah.

The Umayyads inherited the entire Rashidun Caliphate including Hejaz and ruled from 661 to 750. In 702, Jeddah was briefly occupied by pirates from the Kingdom of Axum. However, Jeddah remained a key civilian harbor, serving fishermen and pilgrims travelling by sea for the Hajj. It is also believed that the Sharifdom of Makkah, an honorary Viceroy to the holy land, was first started in this period of the Islamic Caliphate. Jeddah has been established as the main city of the historic Hijaz province and a historic port for pilgrims arriving by sea to perform their Hajj pilgrimage in Mecca.

In 750 in the Abbasid Revolution, the Abbasids successfully took control of almost the whole Umayyad Empire, excluding Morocco (Maghrib) and Spain (Al-Andalus). From 876, Jeddah and the surrounding area became the object of wars between the Abbasids and the Tulunids of Egypt, who at one point gained control of the emirates of Egypt, Syria, Jordan and Hejaz. The power struggle between the Tulunid Governors and the Abbasids over Hejaz lasted for nearly twenty-five years, until the Tulunids finally withdrew from Arabia in 900.

In 930 AD, the main Hejazi cities of Medina, Mecca and Taif were heavily sacked by the Qarmatians. It is probable, though not historically confirmed, that Jeddah itself was attacked.

Soon after, in early 935, the Ikhshidids, the new power in Egypt, took control of the Hejaz region. There are no historical records that detail the Ikhshidid rule of Hejaz. At this point in time, Jeddah was still unfortified and without walls.
change_case:english_lowercase