 By this time, the whole Hungarian and Croatian Kingdom was facing increasing internal difficulties, as a 20-year civil war ensued between the Capetian House of Anjou from the Kingdom of Naples, and King Sigismund of the House of Luxembourg.During the war, the losing contender, Ladislaus of Naples, sold his "rights" on Dalmatia to the Venetian Republic for a mere 100,000 ducats.The much more centralized Republic came to control all of Dalmatia by the year 1420, it was to remain under Venetian rule for 377 years (1420–1797).