 It was enlarged subsequently on different occasions and finally re-erected in 1707.The fort formerly accommodated viceroys and other dignitaries newly arrived from, or en route to, Lisbon, and in the early eighteenth century proved a linchpin in the wars against the Hindu Marathas, who were never able to take it.The bastion was used as a prison.