In Imljani and Javorani, Roman basilica have been found, as well as the Roman road from Servitium (Banja Luka) to Levsaba (Travnik) in the vicinity were also found. Tombstones of the Stećak type date back to the 14th and 15th centuries, when the area was part of the Kingdom of Bosnia. In 1463 the town became part of the Ottoman Empire and Islam was to become the dominant religion of the region. The Old Mosque was significant and one of the first in the region. It was destroyed, along with the New Mosque, in 1992 during the Bosnian War.