Abu Ja'afar al-Mansur was the second Abbasid Caliph He built the city Baghdad and made it the capital and headquarters for the Abbasid Caliphate with authority over all Islamic countries. Baghdad was the capital for the whole Islamic world.
Further Reading:
The Caliphate: Its Rise, Decline, and Fall - From Original Sources