During the late 14th and early 15th centuries, the Black Sheep Turkmen ruled the area now known as Iraq. In 1466, the White Sheep Turkmen defeated the Black Sheep and took control. From the earliest 16th century, in 1508, as with all territories of the former White Sheep Turkmen, Iraq fell into the hands of the Iranian Safavids. Owing to the century long Turco-Iranian rivalry between the Safavids and the neighbouring Ottoman Turks, Iraq would be contested between the two for more than a hundred years during the frequent Ottoman-Persian Wars.