The Kara Koyunlu or Qara Qoyunlu, also called the Black Sheep Turkomans (Persian/Azeri: قرا قویونلو), were a Shi'ite Oghuz Turkic tribal federation that ruled over the territory comprising the present-day Armenia (1406), Azerbaijan, north-western Iran, eastern Turkey and Iraq from about 1375 to 1468.
The Kara Koyunlu Turkomans at one point established their capital in Herat in eastern Persia, and were vassals of the Jalayirid dynasty in Baghdad and Tabriz from about 1375, when the leader of their leading tribe, ruled over Mosul. However, they rebelled against the Jalayirids, and secured their independence from the dynasty with the conquest of Tabriz by Qara Yusuf. In 1400, the armies of Tamerlane defeated the Kara Koyunlu, and Qara Yusuf fled to Egypt seeking refuge with the Mamluks. He gathered an army and by 1406 had taken back Tabriz. In 1410, the Kara Koyunlu captured Baghdad. The installation of a subsidiary Black Sheep Turkomans line there hastened the downfall of the Jalayirids whom they had once served. Despite internal fighting amongst Kara Yusuf's descendants after his death in 1420, and the increasing threat of the Timurids, the Black Sheep Turkomans maintained a strong grip over the areas they controlled.
Read more about Kara Koyunlu: Jahān Shāh