جواو الرابع
The fortification was likely constructed sometime in the 15th century, over the primitive structure that already existed. King John IV of Portugal ordered the construction of a new fort in 1643, designed by French military engineer Miguel de l'Ècole, and directed by Fernando César de Carvalhais Negreiros, then Captain of the Royal Armada ().