Complex sentence: The military captaincy of Senj was established in 1469 in order to defend from the invading Ottoman and Venetian armies, and the town sheltered thousands of refugees from the nearby occupied areas.
Split into simpler sentences: The military captaincy of Senj was established in 1469 in order to defend against the invading Ottoman and Venetian armies. The town sheltered thousands of refugees from nearby occupied areas.