 The Venetians gained control over most of Dalmatia by 1428, with exception of the city-state of Dubrovnik which became independent.Ottoman conquests led to the 1493 Battle of Krbava field and 1526 Battle of Mohács, both ending in decisive Ottoman victories.King Louis II died at Mohács, and in 1527, the Croatian Parliament met in Cetin and chose Ferdinand I of the House of Habsburg as new ruler of Croatia, under the condition that he provide protection to Croatia against the Ottoman Empire while respecting its political rights.