 During the period of personal union with Kingdom of Hungary, the Croatian coast fell under Venice and its naval power deteriorated.But this is the time when the fleet of the Republic of Dubrovnik, which kept its independence, started to rise.The independence of Dubrovnik was also kept during Napoleonic wars which shows its strength and effective diplomacy.