In the early French Mandate period in Syria, Halfaya was a musha' ("collective farming") village with a population of roughly 1,000. During that period, twelve clans collectively held the 47 faddans that made up the village, despite the fact that property titles indicated that the land was divided between the holders.[5]
On 16 December 2012, during the Syrian civil war that began in early 2011, opposition rebels assaulted Syrian Army checkpoints in the vicinity and Halfaya was shelled by government forces. The fighting and shelling resulted in the deaths of 23 civilians in the town according to the pro-opposition Syrian Observatory for Human Rights (SOHR),[6] and a later report by New Lines Institute.[7] By 18 December rebels reportedly overran army positions around Halfaya and gained control over the town.[8] Rebels had advanced 40 kilometres (25 mi) south from Maarrat al-Nu'man and Jisr ash-Shugour, encountering little resistance.[9] On 23 December government airstrikes hit a bakery in Halfaya while several people were queuing for bread. According to anti-government activists at least 90 people were killed,[10] while fatalities have also been reported to be as high as 200.[11]
On 19 May 2013, the Syrian Army took control of Halfaya after rebel forces retreated from the town.[citation needed] In late August 2014, the rebels took control of Halfaya as part of their push towards Hama's military airport.[citation needed] The army recaptured it at a later date, but the rebels again took it in August 2016.[12] The town was then recaptured by the SAA in April 2017.[13]
On 30 November 2024 during the Northwestern Syria offensive (2024), HTS rebels captured the city from the Syrian Army but were repulsed not long afterward.