When the Treaty of Paris (ratified in Madrid) was concluded in 1617, bringing an end to the war between Venice and the Habsburgs, under the terms of the treaty the Uskok families were forcibly removed from Senj and disbanded into the hinterland, most notably in the Žumberak hills near Karlovac.