It proved a fine defense and was instrumental in Candia 's ability to hold out so long in the siege of the city throughout the 1660s .
The city was finally saved by a friendly army just as it was on the brink of falling .