The creation of the city of Guarda and the granting of its charter by King Sancho I on 27 November 1199 required the construction of a primitive Romanesque castle, of which only the so-called Torre Velha (Old Tower) has survived in the northern part of the city. It was part of a military complex characterised by the presence of a tower in the centre of a courtyard delimited by a wall line.