Venice, frustrated with the piracy, launched an attack after the Archduke Ferdinand of Styria refused to reprimand the Uskoks. A peace treaty was signed in autumn 1617 which arranged for the Uskoks to be disbanded, as well as their ships and fortresses be destroyed. An agreement between the Habsburgs and Venetians in 1618 expelled the Uskoks from Senj,[23] prompting migrations of Uskok families into the hinterland.