The precise terms of the relationship between the two realms became a matter of dispute in the 19th century. The nature of the relationship varied through time, with Croatia retaining a large degree of internal autonomy overall, while the real power rested in the hands of the local nobility. Modern Croatian and Hungarian historiographies mostly view the relations between Kingdom of Croatia and Kingdom of Hungary from 1102 as a form of unequal personal union of two internally autonomous kingdoms united by a common Hungarian king.