By the end of the 5th century, the ancient ruling dynasty of Albania was replaced by princes of the Parthian Mihranid family, who claimed descent from the Sasanians. They assumed the title of "Arranshah" (i.e. shah of Arran, Iranian name of Albania).[5] The ruling dynasty was named after its founder Mihran, who was a distant relative of the Sasanians.[6] The Mihranid dynasty survived under Muslim suzerainty until 821-2.[7]