 In the midst of the 1383-1385 Portuguese succession crisis, the castle sided with Beatrice and later was conquered by King John 1 (1385-1433).The king helped advance the construction of the wall.In themidst of the war of Restoration for Portuguese's independence, the castle received some modernization efforts.