It was in these circumstances that the two confederations evolved, and under these conditions that they prospered, so that during the second half of the 8th/14th century they were both able to found dynasties, that of the Aq Quyunlu in Diyarbakr, with its centre at Amid, that is in the lands of the Tigris and Euphrates with Urfa and Mardin in the south and Baiburt in the north; that of the Qara Quyunlu immediately to the east, with a centre at Arjlsh on the north-east shore of Lake Van, and spreading north to Erzerum and south to Mosul. The territories of both confederations were then occupied, as they had long been already, by a predominantly sedentary population, consisting of Armenians, Kurds, Aramaeans and Arabs, but at first including no Persian elements.