Jajce was first built in the 14th century and served as the capital of the independent Kingdom of Bosnia during its time. The town has gates as fortifications, as well as a castle with walls which lead to the various gates around the town. About 10–20 kilometres from Jajce lies the Komotin Castle and town area which is older but smaller than Jajce.