 By the early 7th-century, Chaghaniyan became independent from Hephthalite rule, and came under the control of local Iranian rulers known as the “Chaghan Khudah”.During the Muslim conquest of Persia, the Chaghan Khudah aided the Sasanians against the Rashidun Arabs.However, the Arabs, after having dealt with the Sasanian Empire, began focusing on the local rulers of Khorasan, which included the Chaghan Khudah and many other local rulers.