In the early 13th century, as various peoples fled from the advancing Mongol onslaught, the Highlands saw the migrations of the Karluk and Kharizmian peoples. The Mongols, who did not distinguish between Christianity and Islam, reached the Highlands in 1235. With their arrival, Armenia became part of "the East" in its entirety for the first time since the territory was partitioned during the Byzantine–Sasanian wars. Considered the successors of the Abbasids, Sassanids and Seljuks, the Mongols eventually converted to Islam and established their dynasty in Azerbaijan.