Of ancient origin, Anbar was the residence of the Abbasid Caliphs prior to the founding of Baghdad in 762. While no longer the capital, Anbar retained its role as a place of administration and of lively commerce and trade.