Curzola, as the Venetians called it, surrendered to the Kingdom of Hungary in 1358 according to the Treaty of Zadar, but it surrendered to the Bosnian King Stefan Tvrtko I in the Summer of 1390. However the Kingdom of Hungary restored rule of the island, and in December 1396 Croatian-Hungarian King Sigismund gave it to Đurađ II Stracimirović of the Balšić dynasty of Zeta, who kept it up to his death in 1403, when it was returned under the Hungarian crown. In 1409 it again became a part of the Venetian Republic, purchased by the neighbouring Republic of Venice in 1413–1417, it still declared itself subjected to Venice in 1420. In 1571 it defended itself so gallantly against the Ottoman attackers at the Battle of Lepanto that it obtained the designation "Fidelissima" from the Pope.