It is believed that the early human occupation of the site dates back to a prehistoric fort, possibly Romanized, to believe the testimonies of this period, abundant in the region. There is insufficient evidence in favor of its subsequent occupation. Some scholars claim to be this town the birthplace of Wamba, the last great king of the Goths, who ruled the peninsula between 672 and 682.
The medieval castle
At the time of the Christian Reconquest of the Iberian peninsula, the areas of Penamacor were conquered by King Sancho I (1185-1211), that donated to the Knights Templar, in the person of his Master in the country, D. Gualdim Pais (1189). Aiming your restocking, a decade later the sovereign granted him a charter (1199), ratified in 1209. possibly will date this time the start of construction of the castle. Recent archaeological research at the Village Top (2003) has not yet confirmed an earlier occupation.
Given the progress of its settlement, D. Afonso III (1248-1279) there has instituted an annual fair (1262), attributing to his son and successor, King Dinis (1279-1325), the construction of a second waist the castle walls and the top of the keep and around the village (c. 1300). We found no information on the landlord of his dominions on the Order of extinction in this reign.
Later, under the reign of Ferdinand (1367-1383), was started one Barbican to complement the defense of the castle, work completed under John I (1385-1433). During the crisis of 1383-1385, the town and its castle sided by the Master of Avis.