During the War for the Restoration of Portuguese independence, the advisers to John IV (1640-1656) determined that there was a need to modernize their defenses, which won bulwark lines project in charge of the French architect Nicolau de Langres.