From the 7th to the 9th century , three dynasties contested for control of northern LOCATION@1 : the Pratiharas of LOCATION@2 , the PERSON@1 of LOCATION@3 and the MISC@1 .

Some of these dynasties were the Pratiharas of LOCATION@2 and later PERSON@2 ; the PERSON@1 of LOCATION@3 , and the MISC@2 .
