The fort was built by the Portuguese during their rule in Goa in 1612 for protection from the invasion of Dutch and Marathas.