In 1178, Ferdinand II of León donated the Ponferrada city to the Templar order for protecting the pilgrims on the Way of St. James who passed through El Bierzo in their road to Santiago de Compostela. Their castle was originally a hill-fort and later a Roman citadel. Templar knights took possession of the fortress and reinforced and extended it to use it as an inhabitable palace.
However, the Templars were only able to enjoy the use of their fortress for about twenty years before the order was disbanded and its properties confiscated in 1311. Several noble houses fought over the assets until Alfonso XI allotted them to the Count of Lemos in 1340. Finally the Catholic Monarchs incorporated Ponferrada and its castle into the Crown in 1486. Most of the walls were removed and used in local construction projects.
The building has an irregular square plan and the outstanding features are, above all, the entrance which involves crossing the moat on a drawbridge and, further on, two large towers with crenellations joined by an arch. Its twelve original towers reproduced the shapes of the constellations.
References:The Temple of Edfu is one of the best preserved ancient shrines in Egypt. It was built in the Ptolemaic Kingdom between 237 and 57 BC.
Edfu was one of several temples built during the Ptolemaic Kingdom, including the Dendera Temple complex, Esna, the Temple of Kom Ombo, and Philae. Its size reflects the relative prosperity of the time. The present temple initially consisted of a pillared hall, two transverse halls, and a barque sanctuary surrounded by chapels. The building was started during the reign of Ptolemy III Euergetes and completed in 57 BC under Ptolemy XII Auletes. It was built on the site of an earlier, smaller temple also dedicated to Horus, although the previous structure was oriented east–west rather than north–south as in the present site.