Svinjar was one of the important rebel sites in Bosnia during the Herzegovina Uprising (1875–78) against the Ottoman Empire; one of the battles took place here on 21 November 1875 at a place called Srbac where hajduks of Motajica burnt down and destroyed an Ottoman military camp.