 This early fort, that still existed in 1685, was garnished by a lieutenant, a "condestável" and two artillerymen, nominated by the town hall.In the end of the 17th century, during the Age of Gunpowder, with the urge for a better defense of the seaport, the "alcaide" (governor of the fort) João de Almeira Rêgo thought that the construction of a new fortress would be preferable.Construction began in 1701, during the reign of Peter II of Portugal.