Beginning Initially, Ghazi Muhammad called only for passive resistance to Russian expansion into the region. According to Moshe Gammer, renewed Russian expansion in late 1829 caused him to change his position. Vladimir Bobrovnikov writes that Ghazi Muhammad attributed the local rulers' resistance to his call to strictly implement sharia to Russian influence and eventually concluded that his goal could only be achieved through holy war against the Russians. In late 1829, he was proclaimed
imam (religious, military and political leader) of Dagestan at a meeting with other members of the Naqshbandi order in Gimry; this was confirmed at another meeting in early 1830 which included representatives of the
ulama and Dagestani notables. Ghazi Muhammad then sent messages to the people and rulers of Dagestan exhorting them to closely adhere to sharia and threatening to use force against those who would not comply. Soon after this, he declared the holy war against the Russians. Ghazi Muhammad's plan was opposed by some, including Sayyid al-Harakani, Shamil, and Jamal al-Din. He was able to overcome their opposition after receiving the blessing of al-Yaraghi. Jamal al-Din and Shamil came over to Ghazi Muhammad's side, but al-Harakani refused to join him. Ghazi Muhammad's followers went around Dagestani villages imposing their order and punishing local leaders who opposed them. In the village of Harakan, Ghazi Muhammad and his followers destroyed the house of Sayyid al-Harakani and ordered the disposal of the wine stored in the house and the village. Ghazi Muhammad acted especially harshly towards the local nobility, whom he saw as false believers (
munafiqun) and collaborators of the Russians. During his time as imam, Ghazi Muhammad had 30 influential nobles executed. A military-theocratic state, later known as the
Imamate, began to form under Ghazi Muhammad. Around 8,000–10,000 followers soon flocked to Ghazi Muhammad. The core of Ghazi Muhammad's army was made up of his
murids (disciples) and migrants from different parts of Dagestan and
Chechnya. Ghazi Muhammad sometimes appointed ''na'ibs
(deputies) to manage communities located further away from his center of power. The na'ibs
were responsible for raising militias from the communities. He created a treasury (bayt al-mal
), which regularly received zakat and sadaqa'' (almsgiving) payments and confiscated property of the movement's enemies and the local nobility; later it was also supplemented with military booty. According to Gammer, Ghazi Muhammad "established many, if not all, of the policies, practices, strategies and tactics which were followed by his successors."
1830–1831 In February 1830, Ghazi Muhammad entered into negotiations with
Pakhu Bike, the regent of the
Avar Khanate for her underage son. After she refused to join Ghazi Muhammad in the fight against the Russians, he unsuccessfully besieged the Avar capital
Khunzakh. After this defeat, Ghazi Muhammad lost many of his supporters and went to live in isolation, praying and fasting in a hut on the outskirts of his home village. This pious living and withdrawal from political life improved Ghazi Muhammad's reputation. In late February-early March, a powerful earthquake occurred in Dagestan, which Ghazi Muhammad presented as divine punishment for the people's rejection of sharia. The imam's movement gradually recovered its strength, aided by several Russian missteps. The Russian major Ivan Korganov initially tried to negotiate with Ghazi Muhammad and get him to leave the country, but then organized more than one failed assassination attempts against him, further increasing the Ghazi Muhammad's popular support. The Russian capture of
Jar-Balakan (south of Dagestan, in modern-day
Azerbaijan) in March 1830 provoked many to flock to Ghazi Muhammad's banner. Between May and December 1830, forces under the leadership of Ghazi Muhammad's deputies fought with the Russians in the
Alazani valley. In late May 1830, a Russian force of 6,000 men was sent against Gimry, but instead raided cattle from the villages of Hindal, provoking even more opposition to the Russians. , 1891 Over the course of 1830, Ghazi Muhammad expanded his influence into Chechnya and won over more of the
Kumyks. He was supported by the leaders of the Chechen rebellion that had occurred in 1825–26. In May 1830, he sent his deputy Abdallah al-Ashilti to Chechnya. Al-Ashilti was successful in gaining more support for Ghazi Muhammad among the notables of Chechnya. The imam personally traveled to Chechnya in September–October 1830 to strengthen his power there. In March 1831, Ghazi Muhammad's forces took up positions in
Aghach Qala, from which they could simultaneously defend Hindal and threaten the Russians in the nearby lowlands. He successfully fought off Russian attacks on his position in April and May 1831. Ghazi Muhammad took advantage of the withdrawal of some Russian units to deal with the
Polish uprising. He captured
Tarki but was driven back to Aghach Qala by Russian reinforcements. In June, he besieged the Russian fort
Vnezapnaya and then withdrew to a forest followed by 2500 Russian troops under the command of
General Emmanuel. His forces killed or wounded 400 of them, wounding the general, and returned to Aghach Qala. For eight days in August, he besieged
Derbent, the only city in Dagestan, before being forced to withdraw into the mountains. Around October the Russians attacked the Salatau plateau, but Ghazi Muhammad drew them away by threatening
Grozny. On November 1, he sacked
Kizlyar and took 168 prisoners, mostly women, whom he ransomed. The year 1831 marked the height of Ghazi Muhammad's successes, when his authority encompassed most of Chechnya and Dagestan.
Setbacks and defeat In December 1831, Ghazi Muhammad attempted a static defense at Aghach Qala. Most of the 600 defenders were killed when the Russians attacked in on December 13, although Ghazi Muhammad and some others were able to escape. In April 1832, he suddenly besieged
Nazran near
Vladikavkaz. However, his plans to win over all of the
Ingush and
Ossetians and cut off the
Georgian Military Road failed and he soon moved to the vicinity of Grozny. In early July, the Russians captured the fort built by Ghazi Muhammad's forces near
Erpeli. In August 1832, a 15,000–20,000 strong Russian force devastated lower Chechnya. In response, Ghazi Muhammad advanced on Vnezapnaya and on August 18 he raided near Amir-Hadji-Yurt on the
Terek River, drew 500 Cossacks into a forest and killed or wounded 155 of them. On September 10, he retreated to Gimry and prepared its defenses for a major attack. There was talk of a truce, but the Russians would accept nothing less than the Ghazi Muhammad's surrender. By the fall of 1832, Ghazi Muhammad had lost the support of most of the mountain communities. On 1832, a sudden Russian advance trapped Ghazi Muhammad and some of his followers in a fortified house
at Gimry. With no possibility of escape, Ghazi Muhammad is said to have drawn his sword and jumped from the house onto the Russian bayonets, dying immediately. Of those who were besieged with Ghazi Muhammad in the fortification, only Shamil, who was wounded, and one other person managed to escape alive. In the week following the battle, the Russian artillery officer Pavel Bestuzhev-Ryumin made a drawing of a half-naked corpse thought to be that of Ghazi Muhammad. This drawing was later lithographed in Tiflis. K. Prushanovsky, a Russian officer in Dagestan writing in 1841, writes that "the dead body of Kazi-Mulla [Ghazi Muhammad] was found in such a position that he held his beard with one hand and pointed to the sky with the other." Prushanovsky further suggests that this left a great impression on the people, since it appeared as though Ghazi Muhammad was praying even in death; they began to repent for abandoning Ghazi Muhammad. The modern scholar Patimat Takhnaeva considers Prushanovsky's explanation "absurd". The Russians took the imam's body to
Tarku, the capital of the
Kumyk shamkhal. The body was publicly displayed for a few days, then buried in the hills near the fortress of Burnaya. Later, during Shamil's rule, 200 horsemen were sent at night to exhume Ghazi Muhammad's remains and take them to Gimry. A shrine was built over his grave in Gimry, which has since become a pilgrimage site. Within a few days of his death, Ghazi Muhammad was succeeded as imam by his deputy
Hamzat Bek. == Writings ==