Anīrân (Modern Persian, انیران) or Anērān (Middle Persian, 𐭠𐭭𐭩𐭥𐭠𐭭) is an ethno-linguistic term that signifies "non-Iranian" or "non-Iran" (non-Aryan). Thus, in a general sense, 'Aniran' signifies lands where Iranian languages are not spoken. In a pejorative sense, it denotes "a political and religious enemy of Iran and Zoroastrianism."
The term 'Aniran' derives from Middle Persian anērān, Pahlavi ʼnyrʼn, an antonym of ērān that in turn denoted either the people or the Sasanian Empire. However, "in Zoroastrian literature and possibly in Sasanian political thought as well, the term has also a markedly religious connotation. An anēr person is not merely non-Iranian, but specifically non-Zoroastrian; and anēr designates also worshipers of the dēws ("demons") or adherents of other religions." In these texts of the ninth to twelfth century, "Arabs and Turks are called anēr, as are Muslims generally, the latter in a veiled manner."
In official usage, the term is first attested in inscriptions of Shapur I (r. 241–272), who styled himself the "king of kings of Ērān and Anērān." Shapur's claim to Anērān reflected the emperor's victories over Valerian and Philip, and staked a claim against the Roman Empire, the enemies of the Sassanid state. This is also reflected in Shapur I's inscription at the Ka'ba-ye Zartosht, where the emperor includes Syria, Cappadocia, and Cilicia - all three previously captured from the Romans — in his list of Anērān territories.
The proclamation as "king of kings of Ērān and Anērān" remained a stock epithet of subsequent Sassanid dynasts. Thirty years after Shapur, the Zoroastrian high-priest Kartir included the Caucasus in his list of Anērān territories. In this, Kartir's inscription (also at Ka'ba-ye Zartosht) contradicts Shapur's, which included the same two regions in his list of regions of Ērān.
In scripture and folklore
Although first attested in a Sassanid-era proclamation, Anērān, like Ērān, is conceptually several centuries older, appearing in the Younger Avesta as anairya, where it denotes the "Turanians" (the identification of the Turan/Anērān with a particular place is a historically distinct development, see above and below). These "Turanians" of Anērān, apparently the traditional enemies of the Avestan-speaking peoples, appear in Zoroastrian cosmogony and cosmology as the noxious folk of the sixteen lands created by Angra Mainyu (Vendidad 1.18). These lands lay beyond the world river that encircled the sixteen lands created by Ahura Mazda, the first of which was Airyanəm Vaējah, meaning "expanse of the Iranian peoples". This same term in Middle Persian was Ērān (vēj).
In the ninth to twelfth century Zoroastrian texts, the legendary Turanian king and military commander Afrasiab is (together with Dahag and Alexander the Great) the most hated among the beings that Ahriman (Avestan Angra Mainyu) set against the Iranians (Zand-i Wahman yasn 7.32; Menog-i Khrad 8.29)
In the Shahnameh, the poet Ferdowsi draws on Zoroastrian scripture (with due attribution) and retains the association of Aneran with the Turanians. The poet, however, specifically places them beyond the Amu Darya and identifies the Turanians as "Turks". From the point of view of Ferdowsi's home in Khorasan, this identification coincides with the Avestan notion (e.g. Vendidad 7.2, 19.1) that the lands of Angra Mainyu (Middle Persian: Ahriman) lay to the north. The two sources do however diverge with respect to details. In the Avesta, Sogdia (Avestan Sughdha, present-day Sughd and Samarqand Regions) is not Anērān – Sogdia is one of the sixteen lands created by Mazda, not one of the lands of Angra Mainyu.
Nonetheless, for Ferdowsi the division between Ērān and Anērān is just as rigid as it is in the Avesta: When the primordial king Fereydun (Avestan Θraētaona) divides his kingdom – the whole world – among his three sons, he gives the Semitic lands in the west to the eldest, the lands of the north to his middle son Tur (Avestan Turya, hence the name "Turanian"), and Ērān to his youngest (Shahnameh 1.189). In the story, this partition leads to a family feud in which an alliance of the two elder sons (who rule over the Anērānian lands) battle the forces of the youngest (the Iranians). The Iranians win.
For Ferdowsi, the Turanians/Anērānians (often used interchangeably) are unquestionably the villains of the piece. Their conflict with Iranians is the main theme of the Shahnameh and accounts for more than half of the text. The deaths of heroes and other admirable figures are frequently attributed to Turanians. Thus Shahnameh 5.92 says a Turanian raider named Tur-Baratur killed the 77-year-old Zoroaster in Balkh.