 Furthermore, it is known that in 1145, Archbishop John of Braga promised the Knights Templar an imposing house within the city walls.The first documented reference to a walled keep occurred on 12 June 1161, in a transfer to the Church of São João do Souto, that included the walled spaces, and which passed metres from the Sé Cathedral.Around 1210, the walled compound was likely expanded, since documented references referred to road and gate of Souto.