The fort was built in 1623 by the Portuguese and captured in 1639 by the Dutch. It then went through a phase of dismantling and reconstruction and was attacked and captured by the French in 1672.