King John IV (1640-1656) in the War of Portuguese Restoration, and later, King Miguel (1828-1834), in the Liberal Wars, promoted, during their reigns, modernization works and strengthening of the defenses of the village. The latter served the castle of the village as a stronghold from October 1833 until May 17, 1834.