The Safavid emperor, Shah Abbas I ended the rule of Khan Ahmad Khan (the last semi-independent ruler of Gilan) and annexed the province directly to his empire. From this point onward, rulers of Gilan were appointed by the Persian Shah. In the Safavid era, Gilan was settled by large numbers of Georgians, Circassians, Armenians, and other peoples of the Caucasus whose descendants still live or linger across Gilan. Most of these Georgians and Circassians are assimilated into the mainstream Gilaks. The history of Georgian settlement is described by Iskandar Beg Munshi, the author of the 17th century "Tarikh-e Alam-Ara-ye Abbasi", and the Circassian settlements by Pietro Della Valle, among other authors.