294 THE REPUBLIC OF RAGUSA Republic in difficulties with the Porte, who accused it of protecting the freebooters because they were Christians. In 1577 numbers of them were still hanging about in the Dalmatian mountains, and made raids as far as Trebinje, while others from Segna harried Turkish merchantmen. They professed to regard the Ragusans as vassals of the Sultan, and plundered their ships too; but the latter were able to give as hard knocks as they received, and in one encounter killed one of the Uskok leaders. Peace was restored through the mediation of Austria under whose protection the Uskoks were. But the Turks persisted in regarding the Ragusans as the accomplices of the pirates, and again the Sandjakbeg threatened to lay waste their territory. On the land side the Republic was vulnerable, while on the sea her shipping had suffered heavily in the Spanish wars. The incident ended in the Ragusans bribing the enemy into a more reasonable attitude. In 1602 the inhabitants of the island of Lagosta revolted against Ragusan authority, because they complained that their ancient liberties guaranteed to them in the act of submission had been violated. The Ragusan count was driven out, and the islanders raised the banner of St. Mark and asked to be placed under Venetian protection. This was accorded, and a Venetian garrison landed on the island. Long negotiations ensued, and at last Lagosta was given back to Ragusa, but on very onerous conditions.1 In 1617-18 Ragusa was involved in the quarrels between Venice and Spain, which culminated in the 1 Romanin, Storia Documentata di Venezia, vol. viii., Appendix.