The Castle of Ayora was built probably in the mid-13th century, after the Reconquista, on the site of an ancient Arabian fort. The architectural ensemble was composed of the four-storey residence-palace, two fortified towns, and one large keep, as well as other rooms for the soldiers and serfdom, aljibes (European Middle Ages castle cisterns that collected the rain water to provide drinking water to the castles) and gardens. This was surrounded by around 1,000 m of defensive walls and defensive towers.
The castle was reduced to ruins by the troops of Philip V of Spain, in the War of the Spanish Succession, but its profile and its vast size are still noticeable. The keep, of square plan, the Puerta Falsa (Fake Door), commissioned by the Marchioness of Cenete in the 16th century on which it was her coat of arms, as well as paintings, defensive walls, buckets, moats, and cisterns, stand out in the remains of the castle.
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.