The castle dates back to the 16th century when the Ottoman Turks established the Ottoman province of Bosnia.