During the 2014
IS crisis, the town was captured by IS militants. A volunteer civilian militia to defend the town was created in response. The town was then reclaimed by the
Iraqi Army in October 2017. During the
2017 Iraqi–Kurdish conflict, clashes were reported on the outskirts of the town between
Kurdish Peshmerga forces and the Iraqi army, supported by the
Popular Mobilization Forces (also known as
Hashd al-Shaabi), until it was fully recaptured by the latter. During October 19, 2023, the
PKK withdrew their forces in the
Makhmur refugee camp. The Iraqi army advanced to the military posts of the
PKK in the camp, which overlapped with the controlled territory of the
Kurdistan Regional Government. This led to the
2023 Makhmur clashes, in which, six people died, and four of them were
Peshmergas. The result of the war was a ceasefire between both sides, in which both sides agreed to share the military posts. == Refugee camp ==