 Doge Agostino Barbarigo asked the Pope and the Catholic Monarchs for help, and on 24 December a Spanish–Venetian army commanded by Gonzalo de Córdoba took Cephalonia, temporarily stopping the Ottoman offensive on eastern Venetian territories.The Ottoman incursions in Dalmatia escalated to the point where Venice was forced to sign a treaty with Vladislaus II of Hungary and Pope Alexander VI by which they pledged 140,000 ducats a year for the Kingdom of Hungary to actively defend its southern Croatian territories, which aided the defence of Venetian Dalmatia, signed after long negotiations on 13 May 1501.In 1501 Feriz Beg captured Durazzo in Venetian Albania.