The violence caused many Armenian princes to flee to the neighboring Kingdom of Georgia or the Byzantine Empire. Meanwhile, Nakhchivan itself became part of the autonomous Principality of Armenia under Arab control. In the 8th century, Nakhchivan was one of the scenes of an uprising against the Arabs led by Persian revolutionary Babak Khorramdin of the Iranian Khorram-Dinān ("those of the joyous religion" in Persian). Nakhchivan was finally released from Arab rule in the 10th century by Bagratuni King Smbat I and handed over to the princes of Syunik. This region also was taken by Sajids in 895 and between 909 and 929, Sallarid between 942 and 971 and Shaddadid between 971 and 1045.