The walled medieval town of Cabrejas del Pinar was the leader of its Community of Burgs and Land and there are some traces left of the walled enclosure and fortress that protected the locals. The castle was built in stone on top of a high rock possibly between the 13th and 14th century.
Some of the walls, doors and the keep are still visible which helps understand how the fortress’ layout once was. The quadrangular keep was built in stone masonry and reinforced with ashlar on the corners. On some of the higher floors, you can still see wood fixed in holes that supported the wooden floors on each of the four stories. The access door can still be seen and is located on the south-east wall defended by watchtowers and an opening.
On the eastern part of the walled enclosure, there is still a circular watchtower placed there possibly in the 10th century in order to have better visual control over the Caliphate’s territories.
References:The Citadelle of Quebec is an active military installation and official residence of both the Canadian monarch and the Governor General of Canada. It is located atop Cap Diamant, adjoining the Plains of Abraham in Quebec City. The citadel is the oldest military building in Canada, and forms part of the fortifications of Quebec City, which is one of only two cities in North America still surrounded by fortifications, the other being Campeche, Mexico.
The first fortifications in Quebec were built by the Governor General of New France Louis de Buade, and completed just in time for the Battle of Quebec in 1690.
After the British conquest in the second half of the 18th century, the problem of Quebec City's defences grew more acute.