Maglaj is a town and municipality situated in northern Bosnia and Herzegovina within the Zenica-Doboj Canton of the Federation of Bosnia and Herzegovina. It is located approximately 25 km (16 mi) south of the city of Doboj.
The municipality has a total population of 34,980 inhabitants, while the town itself has a population of 6,438.