After the War of the Holy League in 1537 against the Ottoman Empire, a truce between Venice and the Ottomans was created in 1539. This led to the evacuation of all Uskoks in Dalmatia in 1541 where they had been defending a Christian enclave in the mountains during the war. Throughout the following years the Habsburgs were at arms with the Turks, giving the Uskoks the opportunity to repeatedly raid Bosnia and Dalmatia. The Uskoks were able to continue doing so up until 1547 when peace was established between the two, forcing the Uskoks to find other ways of making ends meet. As with other Slavic pirates, the Uskok territory was not suitable for any form of agriculture, forcing them to turn to piracy once more.