In the same year, Knez Vladislav sided with the Republic of Dubrovnik in the war against his father.
[3] In 1463, the Ottomans conquered Ljubuški for the first time, but held it only for a month, between June and July, but had to retreat due to insufficient supplies, and Knez Vlatko Hercegović quickly reclaimed the city to his rule.
As early as 1477, it was a border fortress with a strong garrison which belonged to the Drina kadiluk.
In the vakufnama of Nesuh-age Vučjaković written in February 1565, the city is mentioned as a k'ala (fortress).
The first fortification was created during the medieval Bosnian state, which continued to be developed during the Ottoman period.
Inside the walls there are remains of various buildings, such as watchtower, granary, bakeries, gunpowder mills, and 4 cisterns have been identified, three of which still retain their original shape in the ground.
The western perimeter rampart extends mostly in a calm line, on difficult-to-access, rugged terrain.
[2] The Ottoman part of the fortress was built around a medieval, which then became the core of a larger fortress, like an acropolis, surrounded by walls on all sides, this was still central defense point with two dominating massive east-facing towers at the southeast side.
Around 250 meters northwest from the entrance there are ruins of a mid-16th century mosque that was probably built by Nesuhaga Vučjaković.
The mosque has a quadrangular base 7 meters in length, the preserved height of the walls is around 4.5 m. The minaret which is completely demolished, was located next on the western corner, and the mihrab, in the form of a simple quadrangular with a height approx.