Abū Jaʿfar ʿAbd Allāh ibn Muḥammad al-Manṣūr (; ‎; 714 – 6 October 775) usually known simply as by his laqab al-Manṣūr () was the second Abbasid caliph, reigning from 754 to 775, succeeding his brother al-Saffah (). He founded the 'Round City' of Madinat al-Salam, which was to become the core of imperial Baghdad.

Modern historians regard al-Mansur as the real founder of the Abbasid Caliphate, one of the largest polities in world history, for his role in stabilizing and institutionalizing the dynasty.The Cambridge History of Islam, volume 1: The Formation of the Islamic World, ed. Chase F Robinson, March 2011

Background and early life According to al-Suyuti's History of the Caliphs, al-Mansur lived AD 714 – 6 October AD 775 (95 AH – 158 AH) .Al-Souyouti, Tarikh Al-Kholafa'a (The History of Caliphs) Al-Mansur was born at the home of the Abbasid family in Humayma (modern-day Jordan) after their emigration from the Hejaz in 714 (95 AH). His mother was Sallamah, a slave woman. Al-Mansur was a brother of al-Saffah. Both were named Abd Allah, and to distinguish between them, al-Saffah was referred to by his kunya Abu al-Abbas.

Al-Mansur was a great-great-grandson of Abbas ibn Abd al-Muttalib, an uncle of the Islamic prophet, Muhammad. Al-Mansur's brother al-Saffah began asserting his claim to the caliphate in the 740s and became particularly active in Khorasan. After the death of the Umayyad caliph Hisham ibn Abd al-Malik in 743, a period of instability followed. Al-Saffah led the Abbasid Revolution in 747, and his claim to power was supported throughout Iraq. He became the first caliph of the Abbasid Caliphate in 750 after defeating his rivals.

Shortly before the overthrow of the Umayyads by the Khorasani army mobilized through the extensive underground network of the Abbasid mission, the last Umayyad caliph Marwan II arrested the head of the Abbasid family, al-Mansur's older brother Ibrahim. Al-Mansur fled with the rest of his family to Kufa, where some of the Khorasanian rebel leaders gave their allegiance to his brother al-Saffah. Ibrahim died in captivity, and al-Saffah became the first Abbasid caliph. During his brother's reign, al-Mansur led an army to Mesopotamia, where he received the submission of the local governor after informing him of the Umayyad caliph's death. The governor had taken refuge in Iraq in a garrison town. He was promised a safe-conduct by al-Mansur and the Caliph al-Saffah, but after surrendering the town, he was executed with a number of his followers.

According to The Meadows of Gold, a history book in Arabic written around 947 AD, al-Mansur's dislike of the Umayyad dynasty is well documented and he has been reported saying:

Mansur's first wife was a Yemeni woman from a royal family; his second was a descendant of a hero of the early Muslim conquests; his third was an Iranian servant. He also had a minimum of three concubines: an Arab, a Byzantine, nicknamed the "restless butterfly," and a Kurd.

Caliphate Accession to the caliphate Al-Saffah died after a short five-year reign and al-Mansur took on the responsibility of establishing the Abbasid caliphate by holding on to power for nearly 22 years, from AD 754 until AD 775 (Dhu al-Hijjah AH 136 – Dhu al-Hijjah 158).Sanders, P. (1990). The Meadows of Gold: The Abbasids by MAS‘UDI. Translated and edited by Lunde Paul and Stone Caroline, Kegan Paul International, London and New York, 1989 . Middle East Studies Association Bulletin, 24(1), 50–51. doi:10.1017/S0026318400022549Axworthy, Michael (2008); A History of Iran; Basic, USA; . p. 81. Al-Mansur was proclaimed Caliph on his way to Mecca in 753 (136 AH) and was inaugurated the following year. Abu Ja'far Abdallah ibn Muhammad took the name al-Mansur ("the victorious") and agreed to make his nephew Isa ibn Musa his successor to the Abbasid caliphate. This agreement was supposed to resolve rivalries in the Abbasid family, but al-Mansur's right to accession was challenged by his uncle Abd Allah ibn Ali. Once in power as caliph, al-Mansur had his uncle imprisoned in 754 and killed in 764.

Execution of Abu Muslim and aftermath Relations deteriorated quickly between new caliph and general Abu Muslim, when al-Mansur sent his chamberlain Abu-al Khasib to inventory the spoils of war, and then appointed Abu Muslim governor of Syria and Egypt, outside his powerbase. After an increasingly acrimonious correspondence between Abu Muslim and al-Mansur, Abu Muslim feared he was going to be killed if he appeared in the presence of the Caliph. He later changed his mind and decided to appear in his presence due to a combination of perceived disobedience, al-Mansur's promise to keep him as governor of Khurasan, and the assurances of some of his close aides, some of whom were bribed by al-Mansur. He went to Iraq to meet al-Mansur in al-Mada'in in 755. Al-Mansur proceeded to enumerate his grievances against Abu Muslim, who kept reminding the Caliph of his efforts to enthrone him. Against Abu Muslim were also charges of being a zindiq or heretic.

Fearing the increasing power of the Abbasid general Abu Muslim, who had gained popularity among the people, al-Mansur carefully planned his assassination. Abu Muslim was conversing with the Caliph when, at an appointed signal, four (some sources say five) of his guards rushed in and fatally wounded the general. Al-Mansur had the mutilated corpse thown into the Tigris and bribed Abu Muslim's generals into accepting the murder as a fait accompli. Al-Mansur justified the murder to the people in a khutba, stating that anyone who broke his allegiance to the caliph was worthy of death.

The execution of Abu Muslim caused uproar throughout the province of Khorasan. In 755 Sunpadh, an Iranian nobleman from the House of Karen, led a revolt against al-Mansur, taking the cities of Nishapur, Qumis, and Ray. In Ray, he seized the treasures of Abu Muslim. He gained many supporters from Jibal and Tabaristan, including the Dabuyid ruler, Khurshid, who was paid with money from the treasures. Al-Mansur ordered a force of 10,000 under Abbasid commander Jahwar ibn Marrar al-Ijli to march without delay to Khorasan to put down the rebellion. Sunpadh was defeated, and Khorasan was reclaimed by the Abbasids.

Adminstration in Eastern parts of the empire

Al-Mansur sent an official to take inventory of the spoils collected from the battle as a precautionary measure against its distribution to the army. Angered by al-Mansur's avarice, Jahwar gained support from his troops for his plans to split the treasures evenly, and revolted against the caliph. This raised alarm in the caliph's court, and al-Mansur ordered Muhammad ibn Ashar to march towards Khorasan. Jahwar, knowing his troops were at a disadvantage, retired to Isfahan and fortified in preparation. Muhammad's army pressed the rebel forces, and Jahwar fled to Azerbaijan. Jahwar's forces were defeated, but he escaped Muhammad's pursuit. This campaign lasted from 756 to 762 AD (138 to 144 AH). In 759, al-Mansur sent an army under his generals Abu al-Khasib Marzuq and Khazim ibn Khuzayma to Tabaristan to punish Khurshid for his support of Sunpadh. Khurshid was defeated and Abu al-Khasib was appointed as the governor of the region.

After relieving former vizier Ibn Attiya al-Bahili, al-Mansur transferred his duties to Abu Ayyub al-Muriyani from Khuzestan. Abu Ayyub had been a secretary to Sulayman ibn Habib ibn al-Muhallab, who in the past had condemned al-Mansur to be flogged. Abu Ayyub had rescued al-Mansur from this punishment. Nevertheless, after appointing him as vizier, al-Mansur suspected Abu Ayyub of various crimes, including extortion and treachery, which led to the latter's assassination. The secretary role was granted to Aban ibn Sadaqa until caliph al-Mansur' death.

During the reign of al-Mansur, in 767 AD/150 AH a new Persian rebellion broke out in Badghis, under a leader called Ashinas. The rebellion aimed to achieve the principles and motives of Behafarid, whose movement was suppressed by the Abbasids before. The Abbasids managed to suppress Ashinas' rebellion successfully.

Foundation of Baghdad

In AD 757, al-Mansur sent a large army to Cappadocia which fortified the city of Malatya. In this same year, he confronted a group of the Rawandiyya from the region of Greater Khorasan that were performing circumambulation around his palace as an act of worship.Berkey, J. P. (2003). The formation of Islam: Religion and society in the Near East, 600–1800. New York: Cambridge University Press. When in 758/9 the people of Khorasan rioted against al-Mansur in the battle of Al Hashimiya, Ma'n ibn Za'ida al-Shaybani, a general from the Shayban tribe and companion of Yazid ibn Umar al-Fazari, the Umayyad governor of Iraq, appeared at the scene of the uprising completely masked, and threw himself between the crowd and Mansur, driving the insurgents away. Ma'n reveals himself to al-Mansur as "he whom you have been searching" and upon hearing this, al-Mansur granted him rewards, robes of honour, rank, and amnesty from previously serving the Umayyad dynasty. In 762 two descendants of Hasan ibn Ali rebelled in Medina and Basra. Al-Mansur's troops defeated the rebels first in Medina and then in Basra. This would be the last major uprising against the caliph al-Mansur.

To consolidate his power al-Mansur founded the new imperial residence and palace city Madinat as-Salam (the city of peace), which became the core of the Imperial capital Baghdad. Al-Mansur laid the foundations of Baghdad near the old capital of al-Mada'in, on the western bank of the Tigris River, a location acceptable to him and his commanders. The circular city of about 2.4 km diameter was enclosed by a double-thick defensive wall with four gates named Kufa, Syria, Khorasan, and Basra. In the center of the city al-Mansur erected the caliph's palace and the main mosque. Al-Mansur had built Baghdad in response to a growing concern from the chief towns in Iraq, Basra, and Kufa that there was lack of solidity within the regime after the death of Abu'l 'Abbas (later known as al-Saffah). Another reason for the construction of the new capital was the growing need to house and provide stability for a rapidly developing Abbasid bureaucracy forged under the influence of Iranian ideals. The medieval historians al-Tabari and al-Khatib al-Baghdadi would later claim that al-Mansur had ordered the demolition of the Khosrow palace in Ctesiphon so that the material could be used for the construction of the city of peace.

Al-Mansur pursued his vision of a powerful centralized caliphate in the new Muslim imperial capital of Baghdad. The city was populated with men and women of different faiths and cultures from all over the Islamic world. The Baghdad populace included Christian, Zoroastrian and Jewish minorities and communicated in Arabic. Al-Mansur pursued Islamization by staffing his administration with Muslims of varied backgrounds. Baghdad became one of al-Mansur's lasting achievements. His rule was largely peaceful as he focused on internal reforms, agriculture and patronage of the sciences, thus he paved the way for Baghdad to become a global center of learning and science under the rule of the seventh Abbasid caliph al-Ma'mun.

Designation of his son as Heir and Secret service under him

In 764 al-Mansur's son al-Mahdi was made the designated heir to the caliphate, taking precedence over al-Mansur's nephew Isa ibn Musa, who had been named the designated successor when al-Mansur was crowned caliph. This change in succession was opposed by parts of the Abbasid family and some allies of Isa ibn Musa in Khurasan, but was supported by the Abbasid army. Al-Mansur had cultivated support for his son's accession since 754, while undermining Isa ibn Musa's position within the Abbasid military.