Armavir was inhabited from the 5th-6th millennium BCE onwards. Various obsidian instruments, bronze objects and pottery have been found from that period. King Argishtis I of Urartu built a fortress in the area and named it Argishtikhinili. In 331 BC when Armenia reasserted its independence under the Orontid Dynasty from the Achaemenid Empire, Armavir was chosen as the capital of Armenia. Slabs of clay have been found from the Achaemenid period written in the Elamite language concerning episodes of the Gilgamesh epos. Various inscriptions in Hellenistic Greek carved around the 3rd century BC, include poetry from Hesiod, lines from Euripides, a list of Macedonian months, and names of Orontid Kings.