The Castle of Faria (Castelo de Faria) is a castle in the northern Portuguese civil parish of Gilmonde, municipality of Barcelos, in the Cávado. The site has been occupied by a long human presence beginning in the 3rd or 2nd millennium BCE. There are vestiges of the late Bronze Age settlement, that continued until the late Roman era. In the Middle Ages, buildings at the top of the hill were adapted as a castle for the Terra de Faria, a period of notable bellicose and symbolic importance in the Entre-Douro-e-Minho, during the early Middle Ages. Faria's form corresponds to the 9th-10th-century structure, first referenced in 1099, the year that the fortress was given to Soeiro Mendes da Maia. It is evident from this nobleman's name, the importance of the castle to the foundations of the Portuguese nobility, that dominated the politics of the county of Portucale. This importance was confirmed during the 12th century, from a series of documents and from the prestige of some nobles that were responsible for the fortification, such as Ermígio Riba Douro, Mem de Riba Vizela or Garcia de Sousa. The hilltop of the powerful Terra de Faria, has been associated with a local myth of its role in the revolt of the counts of Portucale against Theresa, Countess of Portugal, who directed the Battle of São Mamede (1128) and ascension to the throne of Afonso Henriques. Before these events, many fortresses swore loyalty to the future King, in opposition to Theresa and her lover Fernando Pérez de Traba. Among these were Neiva (along the north of the Douro) and Santa Maria da Feira (along the southern extension), creating a revolution that was truly "national" in scope. These castles passed from various noblemen's hands in the chronicle of Galician-Portuguese and Spanish-Portuguese conflict; for some time, there were doubts whether the castle referred to as Faria, was not actually Santa Maria da Feira. After studies by Mattoso, Krus and Andrade (1989), the consensual opinion was that the claims by A. de Almeida Fernandes (1991) had never been refuted.