In the middle ages, Počitelj was the administrative centre and centre of governance of Dubrava župa (county), and its westernmost point, which gave it major strategic importance. It is supposed that the fortified town and its attendant settlements were built by Bosnia's King Stjepan Tvrtko I in 1383.
The walled town of Počitelj evolved over the period from the sixteenth to the eighteenth centuries. Architecturally, the surviving stone-built parts of the town are a fortified complex, in which two stages of evolution may be observed: mediaeval, and Ottoman.
It overlooks the town and represents the panoramic place.
References:The Château de Foix dominates the town of Foix. An important tourist site, it is known as a centre of the Cathars. Built on an older 7th-century fortification, the castle is known from 987. In 1002, it was mentioned in the will of Roger I, Count of Carcassonne, who bequeathed the fortress to his youngest child, Bernard. In effect, the family ruling over the region were installed here which allowed them to control access to the upper Ariège valley and to keep surveillance from this strategic point over the lower land, protected behind impregnable walls.
In 1034, the castle became capital of the County of Foix and played a decisive role in medieval military history. During the two following centuries, the castle was home to Counts with shining personalities who became the soul of the Occitan resistance during the crusade against the Albigensians.