A quarter for refugees from Serbia
The name Kostajnica is recorded as early as 1258; it comes from the word for chestnut, as both banks of the Una were rich in chestnut trees. The town has two parts: the čaršija, to which the long-established families trace their origins, and the Užice quarter.
Užice came into being in 1862, when Muslims from the area around Belgrade, Valjevo and Šabac, and above all from the town of Užice, moved to Kostajnica. They named their new settlement after their old home, and surnames such as Valjevac still recall where people came from. The background was the expulsion of Muslims from towns of the Principality of Serbia, agreed between the Ottoman Porte and the Serbian government in the early 1860s. Elsewhere in northern Bosnia, too, the Ottoman government founded new settlements for the refugees, such as Brezovo Polje, Orašje and Bosanski Šamac.
The sultan's mosque
In the same year, 1862, Sultan Abdülaziz had a mosque built in Kostajnica, which was named Azizija after its founder. It forms the centre of the Užice quarter. According to oral tradition and a photograph, a second, smaller mosque with a wooden minaret once stood where the central town park is today; it was destroyed during the First World War.
Today the Azizija and its courtyard are among the endowments of the local Islamic Community, which in Kostajnica consists of a single congregation. The plot of the mosque and courtyard covers 5640 square metres, and the endowments also include a Koran school, the mosque graveyard and the town's cemeteries.
Destruction and rebuilding
During the war the Serb authorities in Kostajnica drove out the non-Serb population, and religious buildings were destroyed. In July 1992 Serb forces demolished the Azizija Mosque and the Catholic parish church of St Joseph.
After the war the mosque was rebuilt, a process that took five years. It was formally opened on 12 July 2008, in a ceremony led by the then Reis-ul-ulema, Mustafa Cerić. The date was chosen to coincide with the anniversary of the destruction. Residents who had given generous support to the rebuilding received keys to the mosque's gates.



