In early October (all dates old style), Velyaminov left Temir-Khan-Shura (Buynaksk) 25 km to the east.
Taking advantage of the morning mist Velyaminov got his advance guard down to the side canyon, in places using ropes and ladders, and spent several days cutting an approximation of a road.
[1] Ghazi Muhammad had built three walls across the side canyon about 4 km southeast of Gimry.
At this point Hamzat Bek appeared from the south and threatened to cut off the head of the Russian force.
Klugenau appeared at the right moment and Hamzat Bek withdrew, leaving Ghazi Muhammad to his fate.
When the soldiers raised their guns to shoot he leaped over them, landed behind their backs, cut down three of them with his sword but was bayonetted in the lung by a forth.
He grasped the weapon with one hand, killed its owner with the other, pulled out the bayonet and disappeared into the forest.