 The fortress served as the focal point guarding the entry into Bosnia proper as it overlooks Doboj valley where Posavina flatlands gradually turn into hills and mountains of central Bosnia.Its strategic position controlled the roads leading north towards Croatia, east along Spreca river towards Region Soli and Drina valley towards Serbia, and south along Usora river and towards Bosnian mainland.The fortress frequently changed hands in the wars between Bosnia and Hungary from 13th through early 15th century.