Medina, officially al-Madinah al-Munawwarah, also known as al-Madinah an-Nabawiyyah and Taybah, is the capital, administrative centre, and largest city of Medina Province in the Hejaz region of western Saudi Arabia. It is the second holiest city in Islam after Mecca, and one of the oldest and most important places in Islamic history. The population as of 2022 is 1,477,023, making it the fourth-most populous city in the country. Around 58.5% of the population are Saudi citizens and 41.5% are foreigners. The city joined the UNESCO Global Network of Learning Cities in 2024. Located at the core of the Medina Province in the western reaches of the country, the city is distributed over 589 km2 (227 sq mi), of which 293 km2 (113 sq mi) constitutes the city's urban area, while the rest is occupied by the Hejaz Mountains, empty valleys, agricultural spaces, and older dormant volcanoes.
Medina is generally considered to be the "cradle of Islamic culture and civilization". The city is considered to be the second-holiest of three key cities in Islamic tradition, with Mecca and Jerusalem serving as the holiest and third-holiest cities respectively. Al-Masjid al-Nabawi (lit. 'The Prophet's Mosque') is of exceptional importance in Islam and serves as burial site of the prophet Muhammad, by whom the mosque was built in 622 CE (first year of the Hijrah). Observant Muslims usually visit his tomb, or rawḍah, at least once in their lifetime during a pilgrimage known as Ziyarat, although this is not obligatory. The original name of the city before the advent of Islam was Yathrib (Arabic: يَثْرِب), and it is referred to by this name in Chapter 33 (Al-Aḥzāb, lit. 'The Confederates') of the Quran. It was renamed to Madīnat an-Nabī (lit. 'City of the Prophet' or 'The Prophet's City') after and later to al-Madinah al-Munawwarah (lit. 'The Enlightened City') before being simplified and shortened to its modern name, Madinah (lit. 'The City'), from which the English-language spelling of "Medina" is derived. Saudi road signage uses Madinah and al-Madinah al-Munawwarah interchangeably.
The city existed for over 1,500 years before Muhammad's migration from Mecca, known as the Hijrah. Medina was the capital of a rapidly increasing Muslim caliphate under Muhammad's leadership, serving as its base of operations and as the cradle of Islam, where Muhammad's ummah (lit. 'nation')—composed of Medinan citizens (Ansar) as well as those who immigrated with Muhammad (Muhajirun), who were collectively known as the Sahabah—gained huge influence. Medina is home to three prominent mosques, namely al-Masjid an-Nabawi, Quba Mosque, and Masjid al-Qiblatayn, with the Quba Mosque being the oldest in Islam. A larger portion of the Qur'an was revealed in Medina in contrast to the earlier Meccan surahs.
Much like most of the Hejaz, Medina has seen numerous exchanges of power within its comparatively short existence. The region has been controlled by Jewish-Arabian tribes (up until the fifth century CE), the ʽAws and Khazraj (up until Muhammad's arrival), Muhammad and the Rashidun (622–660), the Umayyads (660–749), the Abbasids, the Fatimids, the Ayyubids, the Mamluks of Egypt (1254–1517), the Ottomans (1517–1805), the First Saudi State (1805–1811), Muhammad Ali of Egypt (1811–1840), the Ottomans for a second time (1840–1918), the Sharifate of Mecca under the Hashemites (1918–1925) and finally is in the hands of the present-day Kingdom of Saudi Arabia (1925–present).
In addition to visiting for Ziyarah, tourists come to visit the other prominent mosques and landmarks in the city that hold religious significance such as Mount Uhud, Al-Baqi' cemetery and the Seven Mosques among others. The Saudi government has also carried out the destruction of several historical structures and archaeological sites, both in Medina and Mecca.
Names
Yathrib
Before the advent of Islam, the city was known as Yathrib (Arabic: يَثْرِب, romanised: Yaṯrib; pronounced [ˈjaθrɪb]). The word Yathrib appears in an inscription found in Harran, belongs to the Babylonian king Nabonidus (6th century BCE) and is well attested in several texts in the subsequent centuries. The name has also been recorded in Āyah (verse) 13 of Surah (chapter) 33 of the Qur'an.[Quran 33:13] and is thus known to have been the name of the city up to the Battle of the Trench. According to Islamic tradition, Muhammad later forbade calling the city by this name.
Taybah and Tabah
Sometime after the battle, Muhammad renamed the city Taybah (the Kind or the Good) (Arabic pronunciation: [ˈtˤajba]; طَيْبَة) and Tabah (Arabic: طَابَة) which is similar in meaning. This name is also used to refer to the city in the popular folk song, "Ya Taybah!" (O Taybah!). The two names are combined in another name the city is known by, Taybat at-Tabah (the Kindest of the Kind).
Madinah
The city has also simply been called Al-Madinah (i.e. 'The City') in some ahadith. The names al-Madīnah an-Nabawiyyah (ٱلْمَدِينَة ٱلنَّبَوِيَّة) and Madīnat un-Nabī (both meaning "City of the Prophet" or "The Prophet's City") and al-Madīnat ul-Munawwarah ("The Illuminated City") are all derivatives of this word. This is also the most commonly accepted modern name of the city, used in official documents and road signage, along with Madinah.
History
Medina is home to several distinguished sites and landmarks, most of which are mosques and hold historic significance. These include the three aforementioned mosques, Masjid al-Fath (also known as Masjid al-Khandaq), the Seven Mosques, the Baqi' Cemetery where the graves of many famous Islamic figures are presumed to be located; directly to the southeast of the Prophet's Mosque, the Uhud mountain, site of the eponymous Battle of Uhud and the King Fahd Glorious Qur'an Printing Complex where most modern Qur'anic Mus'hafs are printed.
Early history
Medina has been inhabited at least 1500 years before the Hijra, or approximately the 9th century BCE. By the fourth century, Arab tribes began to encroach from Yemen, and there were three prominent Jewish tribes that inhabited the city around the time of Muhammad: the Banu Qaynuqa, the Banu Qurayza, and Banu Nadir. Ibn Khordadbeh later reported that during the Persian Empire's domination in Hejaz, the Banu Qurayza served as tax collectors for the Persian Shah.
The situation changed after the arrival of two new Arab tribes, the 'Aws or Banu 'Aws and the Khazraj, also known as the Banu Khazraj. At first, these tribes were allied with the Jewish tribes who ruled the region, but they later revolted and became independent.
Under the 'Aws and Khazraj
Toward the end of the 5th century, the Jewish rulers lost control of the city to the two Arab tribes.
Most modern historians accept the claim of the Muslim sources that after the revolt, the Jewish tribes became clients of the 'Aws and the Khazraj. However, according to Scottish scholar, William Montgomery Watt, the clientship of the Jewish tribes is not borne out by the historical accounts of the period prior to 627, and he maintained that the Jewish populace retained a measure of political independence.
Early Muslim chronicler Ibn Ishaq tells of an ancient conflict between the last Yemenite king of the Himyarite Kingdom and the residents of Yathrib. When the king was passing by the oasis, the residents killed his son, and the Yemenite ruler threatened to exterminate the people and cut down the palms. According to Ibn Ishaq, he was stopped from doing so by two rabbis from the Banu Qurayza tribe, who implored the king to spare the oasis because it was the place "to which a prophet of the Quraysh would migrate in time to come, and it would be his home and resting-place." The Yemenite king thus did not destroy the town and converted to Judaism. He took the rabbis with him, and in Mecca, they reportedly recognised the Ka'bah as a structure built by Abraham and advised the king "to do what the people of Mecca did: to circumambulate the structure, to venerate and honor it, to shave his head and to behave with all humility until he had left its precincts." On approaching Yemen, tells Ibn Ishaq, the rabbis demonstrated to the local people a miracle by coming out of a fire unscathed and the Yemenites accepted Judaism.
Eventually the Banu 'Aws and the Banu Khazraj became hostile to each other and by the time of Muhammad's Hijrah (emigration) to Medina in 622, they had been fighting for 120 years and were sworn enemies The Banu Nadir and the Banu Qurayza were allied with the 'Aws, while the Banu Qaynuqa sided with the Khazraj. They fought a total of four wars.
Their last and bloodiest known battle was the Battle of Bu'ath, fought a few years prior to the arrival of Muhammad. The outcome of the battle was inconclusive, and the feud continued. 'Abd Allah ibn Ubayy, one Khazraj chief, had refused to take part in the battle, which earned him a reputation for equity and peacefulness. He was the most respected inhabitant of the city prior to Muhammad's arrival. To solve the ongoing feud, concerned residents of Yathrib met secretly with Muhammad in 'Aqaba, a place outside Mecca, inviting him and his small group of believers to come to the city, where Muhammad could serve a mediator between the factions and his community could practice its faith freely.
Under Muhammad and the Rashidun
In 622, Muhammad and an estimated 70 Meccan Muhajirun left Mecca over a period of a few months for sanctuary in Yathrib, an event that transformed the religious and political landscape of the city completely; the longstanding enmity between the Aus and Khazraj tribes was dampened as many of the two Arab tribes and some local Jews embraced the new religion of Islam. Muhammad, linked to the Khazraj through his great-grandmother, was agreed on as the leader of the city.
According to Ibn Ishaq, all parties in the area agreed to the Constitution of Medina, which committed all parties to mutual cooperation under the leadership of Muhammad. The nature of this document as recorded by Ibn Ishaq and transmitted by Ibn Hisham is the subject of dispute among modern Western historians, many of whom maintain that this "treaty" is possibly a collage of different agreements, oral rather than written, of different dates, and that it is not clear exactly when they were made. Other scholars, however, both Western and Muslim, argue that the text of the agreement—whether a single document originally or several—is possibly one of the oldest Islamic texts we possess. In Yemenite Jewish sources, another treaty was drafted between Muhammad and his Jewish subjects, known as Kitāb Dimmat al-Nabi, written in the 3rd year of the Hijra (625), and which gave express liberty to Jews living in Arabia to observe the Sabbath and to grow-out their side-locks. In return, they were to pay the jizya annually for protection by their patrons, while the Muslims would pay the Zakat tax.
Battle of Uhud
In the year 625, Abu Sufyan ibn Harb, a senior chieftain of Mecca who later converted to Islam, led a Meccan force against Medina. Muhammad marched out to meet the Qurayshi army with an estimated 1,000 troops, but just as the army approached the battlefield, 300 men under 'Abd Allah ibn Ubayy withdrew, dealing a severe blow to the Muslim army's morale. Muhammad continued marching with his now 700-strong force and ordered a group of 50 archers to climb a small hill, now called Jabal ar-Rummaah (The Archers' Hill) to keep an eye on the Meccan's cavalry and to provide protection to the rear of the Muslim's army. As the battle heated up, the Meccans were forced to retreat. The frontline was pushed further and further away from the archers and foreseeing the battle to be a victory for the Muslims, the archers decided to leave their posts to pursue the retreating Meccans. A small party, however, stayed behind; pleading the rest to not disobey Muhammad's orders.
Seeing that the archers were starting to descend from the hill, Khalid ibn al-Walid commanded his unit to ambush the hill and his cavalry unit pursued the descending archers were systematically slain by being caught in the plain ahead of the hill and the frontline, watched upon by their desperate comrades who stayed behind up in the hill who were shooting arrows to thwart the raiders, but with little to no effect. However, the Meccans did not capitalise on their advantage by invading Medina and returned to Mecca. The Madanis (people of Medina) suffered heavy losses, and Muhammad was injured.
Battle of the Trench
In 627, Abu Sufyan led another force toward Medina. Knowing of his intentions, Muhammad asked for proposals for defending the northern flank of the city, as the east and west were protected by volcanic rocks and the south was covered with palm trees. Salman al-Farsi, a Persian Sahabi who was familiar with Sasanian war tactics recommended digging a trench to protect the city and Muhammad accepted it. The subsequent siege came to be known as the Battle of the Trench and the Battle of the Confederates. After a month-long siege and various skirmishes, the Meccans withdrew again due to the harsh winter.
During the siege, Abu Sufyan contacted the Jewish tribe of Banu Qurayza and formed an agreement with them, to attack the Muslim defenders and effectively encircle the defenders. It was however discovered by the Muslims and thwarted. This was in breach of the Constitution of Medina and after the Meccan withdrawal, Muhammad immediately marched against the Qurayza and laid siege to their strongholds. The Jewish forces eventually surrendered. Some members of the Aws negotiated on behalf of their old allies and Muhammad agreed to appoint one of their chiefs who had converted to Islam, Sa'd ibn Mu'adh, as judge. Sa'ad judged that all male members of the tribe should be killed and the women and children enslaved. This action was conceived of as a defensive measure to ensure that the Muslim community could be confident of its continued survival in Medina. The French historian Robert Mantran proposes that from this point of view it was successful—from this point on, the Muslims were no longer primarily concerned with survival but with expansion and conquest.
In the ten years following the hijra, Medina formed the base from which Muhammad and the Muslim army attacked and were attacked, and it was from here that he marched on Mecca, entering it without battle in 630. Despite Muhammad's tribal connection to Mecca, the growing importance of Mecca in Islam, the significance of the Ka'bah as the centre of the Islamic world, as the direction of prayer (Qibla), and in the Islamic pilgrimage (Hajj), Muhammad returned to Medina, which remained for some years the most important city of Islam and the base of operations of the early Rashidun Caliphate.
The city is presumed to have been renamed Madinat al-Nabi ("City of the Prophet" in Arabic) in honour of Muhammad's prophethood and the city being the site of his burial.
Under the first three caliphs Abu Bakr, Umar, and Uthman, Medina was the capital of a rapidly increasing Muslim Empire. During the reign of 'Uthman ibn al-Affan, the third caliph, a party of Arabs from Egypt, disgruntled at some of his political decisions, attacked Medina in 656 and assassinated him in his own home. Ali, the fourth caliph, changed the capital of the caliphate from Medina to Kufa in Iraq for being in a more strategic location. Since then, Medina's importance dwindled, becoming more a place of religious importance than of political power. Medina witnessed little to no economic growth during and after Ali's reign.