The dynasty was named after the Turcoman Afshar tribe from Khorasan in north-east Iran, to which Nader belonged. The Afshars had originally migrated from Turkestan to Azerbaijan (Iranian Azerbaijan) in the 13th century. In the early 17th century, Shah Abbas the Great moved many Afshars from Azerbaijan to Khorasan to defend the north-eastern borders of his state against the Uzbeks, after which the Afshars settled in those regions. Nader belonged to the Qereqlu branch of the Afshars.