Haji Yahya-bek of Gazi-Kumukh fled to Imam Shamil and became one of his naibs and later started negotiations with Mahmud-bek to assist Imam Shamil.
In 1841 Haji Yahya-bek captured the fortress of Gazi-Kumukh, briefly incorporating Lak lands into Imamate.