This Caucasian War raged until 1864, when the Avarian Khanate was abolished and the Avarian District was instituted instead. One portion of the Avars refused to collaborate with Russians and migrated to Turkey, where their descendants live to this day. Although the population was decimated through war and emigration, the Avars retained their position as the dominant ethnic group in Dagestan during the Soviet period. After World War II, many Avars left the barren highlands for the fertile plains closer to the shores of the Caspian Sea.