After the death of King Louis II of Hungary at Mohács monarchical crisis in the Kingdom of Hungary occurred. The Croatian Parliament met in 1527 in the town of Cetin and chose Ferdinand I of the House of Habsburg as new ruler of Croatia, under the condition that he provides protection to Croatia against the Ottoman Empire in the Croatian–Ottoman War while respecting its political rights, although he later failed to fulfill this promise.