[citation needed] During the Russian Empire, the settlement was the administrative capital of the Khasavyurtovsky Okrug of the Terek Oblast.
On August 19, 2012, six police officers were killed and eight people injured at two gun and bomb attacks in the city.
[12] In December 2016, the Russian authorities reported the existence of the Khasavyurt Group, allegedly linked to the Islamic State and a flareup of incidents and skirmishes between the police and local militants in and around the city.
The elections were held according to a proportional system in a single district.
In June 2015, a new charter for the urban district of the city of Khasavyurt was adopted.
Ethnic groups (2021 census):[17] Khasavyurt has a humid continental climate with hot summers and cold winters.