 When Henry finally abandoned the castle, he order the city be put to flame.The tomb of Cabido, then referred to "Porta do Muro", which was also named the "São tiago da Cavidade".King Ferdinand restored the wall in 1378, adding three towers to the perimeter defenses.