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:Herceg Novi was founded (on a former small fishing village, existing since Roman Empire times) as a fortress in 1382 by first Bosnian King Stjepan Tvrtko I and was called Sveti Stefan or Castelnuovo. The Turks conquered Herceg Novi in 1482, and ruled for 200 years, until 1687. However, there was a short pause between 1538 and 1539 when it was held by the Spaniards before they were defeated in the Siege of Castelnuovo. Turkey ruled again until 1687, from then until 1797, the town was ruled by the Venetian Republic.
The Herceg Novi old town is amazing. It is on a fairly steep hill that leads all the way down to the sea. Wandering through the small stairways to the various plazas and fortresses is a many hour adventure.