Following the 1804-1814 War, but also per the 1826-1828 war which ceded the last territories, large migrations, so-called Caucasian Muhajirs, set off to migrate to mainland homeland. Some of these groups included the Ayrums, Qarapapaqs, Circassians, Shia Lezgins, and other Transcaucasian Muslims.