Rebuilding was carried out in 1793. The fort was not used during the Peninsular War (1807-1814), and it was gradually abandoned, being deactivated in the early 1820s. During the Portuguese Civil War (1828-1834), Miguel I of Portugal ordered its restoration and expansion, and this was carried out between 1830 and 1832. However, on July 24, 1833, it was disarmed and abandoned when the army of Miguel I withdrew, and later, after the civil war, it fell into ruins. In 1850 funds were made available for its repair, but nothing was done. By 1854 the fort was in an advanced state of ruin.