Between 1640 and 1668 the Portuguese Restoration War took place, which began after the proclamation of the Duke of Bragança as João IV and ended with the independence of Portugal. The first consequence was the construction of a border defence network that modernised the network of medieval castles, giving rise to a new landscape that materialised the principles of bastioned fortification. Various research projects have analysed the Galician-Portuguese border archaeologically, which has not allowed us to understand the defensive system that was developed from 1640 onwards and continued to be transformed in the following centuries.

