 The consequences of the change to the Hungarian king included the introduction of feudalism and the rise of the native noble families such as Frankopan and Šubić.The later kings sought to restore some of their previously lost influence by giving certain privileges to the towns.For the next four centuries, the Kingdom of Croatia was ruled by the Sabor (parliament) and a Ban (viceroy) appointed by the king.