Jahan Shah made peace with the Timurid Shahrukh Mirza; however, this soon fell apart. When Shahrukh Mirza died in 1447, the Kara Koyunlu Turkomans annexed portions of Iraq and the eastern coast of the Arabian Peninsula as well as Timurid-controlled western Iran. Though much territory was gained during his rule, Jahān Shāh's reign was troubled by his rebellious sons and the almost autonomous rulers of Baghdad, whom he expelled in 1464. In 1466, Jahan Shah attempted to take Diyarbakır from the Aq Qoyunlu ("White Sheep Turkomans"), however, this was a catastrophic failure resulting in Jahān Shāh's death and the collapse of the Kara Koyunlu Turkomans' control in the Middle East. By 1468, at their height under Uzun Hasan (1452–1478), Aq Qoyunlu defeated the Qara Qoyunlu and conquered Iraq, Azerbaijan, and western Iran.