Trancoso was land of frontier, stage of diverse fights and striking battles for the formation and independence of the kingdom. Trancoso, is referred to in 960, as a testamentary settlement to the Monastery of Guimarães by D. Flámula, the daughter of Count Rodrigo and the niece of the famous Mumadona Dias, a lady of vast lands south of the Douro. During the next two centuries, its territory was fiercely disputed by Moors and Christians, in battles that dragged themselves until century. XII. In, 1160, D. Afonso Henriques the conquest definitively. D. Dinis marries D.Isabel de Aragão in Trancoso, and orders the construction of the walls that still today protect a town where Christians and Jews lived together.