Since 751 AD, it had been the capital of the Abbasid Caliphate.Indeed, Bagdad had over one million inhabitants, the Caliphs Palace and his bureaucracy, and most importantly the famous House of Wisdom, a massive center of learning in which a vast array of scholars.In 1258, Hulagu, a Mongol warlord, attacked the city.