After decades of raids by the Cimmerians, Scythians, and the Medes, Urartu finally collapsed with the rise of the Median Empire, and shortly after, the geopolitical region previously ruled as Urartu re-emerged as Armenia. By the 5th century BC, Artsakh was part of Armenia under the Orontid Dynasty. It continued to be part of the Kingdom of Armenia under the Artaxiad Dynasty, under which Armenia became one of the largest realms in Western Asia. At its greatest extent, the Great King of Armenia, Tigranes II, built several cities named after himself in regions he considered particularly important, one of which was the city he built in Artsakh.