Peniscola Castle is situated on a crag overlooking the Mediterranean Sea. Arab writer Al-Idrisi described Baniskula in the 11th century AD, and briefly described a Moorish castle overlooking the sea. There are no detailed descriptions until the 13th century, when James I of Aragon briefly summarised the Muslim defences. The castle was transferred to James's control in 1229.
The current form of the castle is essentially that developed by the Knights Templar, who planned to develop a kingdom centered on Peniscola. James II of Aragon gave the castle to the Templars in 1294. The Templars began work that year, demolished the Muslim fortifications, and completely rebuilt the castle; the work was completed in 1307. In common with other Templar fortifications, the castle was laid out around an inner ward and possessed a chapel. Architectural features included barrel vaulting and round arches. The basic Templar core of the castle remains intact; some changes were made by Antipope Benedict XIII in order to modify it for use as a papal residence in the early 15th century. The castle defences and the associated town fortifications were significantly upgraded from the early 16th century onward, in line with advances in military technology. The castle was massively redeveloped by military engineer Giovanni Battista Antonelli in the 16th century.
The castle was involved in various military conflicts of the Kingdom of Aragon, and later in the War of the Spanish Succession in the early 18th century, the Peninsula War and civil conflicts in the early 19th century, each of which impacted upon the state of the castle defences in some form. The castle garrison was finally disbanded in 1890.
The castle where Benedict lived from 1417 until his death in 1423 was restored, improved and new walls were added in 1960 when Anthony Mann's film El Cid was partially filmed there. The town and castle of Peníscola played the role of Valencia. The castle is now a popular tourist attraction and the beaches and surrounding area are a popular family holiday resort.
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.