Answer :
First it was in Kufa, but in 762 caliph founded the city of BAGHDAD
Baghdad was the capital of Abbasid empire. He was the uncle of Muhammad, I believe. Hopefully this helps.