On the course of the Syrian Civil War, the city was first captured by rebels in 2012, overrun by the Islamic State of Iraq and the Levant in 2014 and finally captured by the Syrian Democratic Forces (SDF) in 2016, bringing it into the Autonomous Administration of North and East Syria (AANES). Since 2018, after an agreement with the SDF, the Syrian Arab Army has been deployed on the city's periphery as a buffer between the Turkish occupation of Northern Syria and the AANES.