This dynasty won the Battle of Talas against a polity which employed Karluk mercenaries. The final leader of this dynasty was killed by being wrapped in a carpet and trampled with horses. The Barmakid family saw initial prominence during this dynasty, but eventually lost favor. It gained power after defeating a force led by Marwan II at the Battle of the Zab. Its capital city, which contained the House of Wisdom, was vici
This dynasty won the Battle of Talas against a polity which employed Karluk mercenaries. The final leader of this dynasty was killed by being wrapped in a carpet and trampled with horses. The Barmakid family saw initial prominence during this dynasty, but eventually lost favor. It gained power after defeating a force led by Marwan II at the Battle of the Zab. Its capital city, which contained the House of Wisdom, was viciously sacked in 1258 by Hulagu Khan. This dynasty saw the pioneering of algebra and the medical work of Avicenna in a cultural golden age under the rule of leaders like Harun al-Rashid.  For 10 points, name this third Islamic caliphate, which had a capital at Baghdad and overthrew the Umayyads.
This dynasty won the Battle of Talas against a polity which employed Karluk mercenaries.
Abbasids