In 1839 (June–August), Shamil and his followers, numbering about 4000 men, women and children, found themselves under siege in their mountain stronghold of Akhoulgo, nestled in the bend of the Andi Koysu, about ten miles east of Gimry. Under the command of General Pavel Grabbe, the Russian army trekked through lands devoid of supplies because of Shamil's scorched-earth strategy. The geography of the stronghold protected it from three sides, adding to the difficulty of conducting the siege. Eventually the two sides agreed to negotiate. Complying with Grabbe's demands, Shamil gave his son, Jamaldin in a sign of good faith, as a hostage. Shamil rejected Grabbe's proposal that Shamil command his forces to surrender and for him to accept exile from the region. The Russian army attacked the stronghold, after 2 days of fighting, the Russian troops had secured it. Shamil escaped the siege during the first night of the attack. Shamil's forces had been broken and many Dagestani and Chechen chieftains proclaimed loyalty to the Tsar. Shamil fled Dagestan for Chechnya. There he made quick work of extending his influence over the clans.