 Complete the following phrase:  For the next four centuries, the Kingdom of Croatia was ruled by the Sabor parliament and a ban viceroy appointed by the king. This period saw the rise of influential nobility such as the Frankopan and Šubić families to prominence, and ultimately numerous Bans from the two families. There was an increasing threat of Ottoman conquest and a struggle against the Republic of Venice for control of coastal areas. The Venetians controlled most of Dalmatia by 1428, except the city-state of Dubrovnik, which became independent. 