According to local legend, the town was built by , from whom it takes its name. While some sources cite its first mention as early as 1042 by Dubrovnik chronicler Lukari, others place its documented emergence in the early 15th century. Regardless of the exact founding date, it reached its zenith under the rule of the Pavlović family and Duke Stjepan Vukčić Kosača. Its primary functions included:
: It protected the vital "Dubrovnik road," ensuring safe passage for merchants and caravans. Architectural Layout The settlement was divided into two distinct sections: MiДЌevac
: The fortress dominated the surrounding area from its elevated position, acting as a sentinel for the region. According to local legend, the town was built