Derventa (Serbian Cyrillic: Дервента) is a town and municipality of Bosnia and Herzegovina in the northern part of Republika Srpska just northwest of the town of Doboj, in the Posavina region. The municipality comprises 57 villages as well as the town itself.