Ghazi Muhammad, also known as Qazi Mullah or Ghazi Mollah (b. 1793, Ghimry, Dagestan – d. 1832, Ghimry, Dagestan, Caucasian Imamate), became an Islamic scholar and ascetic, who became the first Imam of the Caucasian Imamate (from 1828 to 1832). He promoted the Sacred Law of Sharia, spiritual purification (tasawwuf), and facilitated a jihad against the invading Russians. He was also one of the prime supporters of Muridism, a strict obedience to Quranic laws used by imams to increase religio-patriotic fervor in the Caucasus.
Ghazi Muhammad preached that jihad would not occur until the Caucasians followed sharia completely rather than following a mixture of sharia and adat (customary traditions). By 1828, Ghazi Muhammad had begun proselytizing and claiming that obeying sharia, giving zakat, faithfully praying, and performing the hajj would not be accepted by Allah if the Russians were still present in the area. He even went on to claim that marriages would become void and children bastards if any Russians were still in the Caucasus.
Ghazi Muhammad became one of the most prominent preachers of Islam in the Caucasus. His memorization of over four hundred hadith allowed him to win many debates against rival preachers in the area. As his reputation grew, he was invited by many khanates and kingdoms loyal, indifferent, and hostile to the Czar. As a sign of humility and austerity, he refused to ride, but would walk.
During the early to mid 19th century of the Christian calendar, Russian political strategy in Dagestan included supporting local, indigenous law, known as 'adat. This was a careful and strategic investment against the growing religiosity and resistance founded on sharia law, which was championed by Ghazi Muhammad. The popularity and rise of Ghazi Muhammad has been attributed both to his charismatic personality and to an indigenous Dagestani population that had grown tired of Russian intrusion and reorganization of local land and resources. Due to conflicting local political, legal, and religious interests, the war led by Ghazi Muhammad has been characterized as a war in the name of Muslim resistance just as much as a war against Russian Imperial encroachment into the North Caucasus. While Ghazi Muhammad gained popular support for his religious policies and military tactics, he did not find widespread support among the region's other political leaders. This lack of support prompted Ghazi Muhammad to launch assaults both against local leaders who preferred to ascribe to ‘adat and against the encroaching Russians. As such, support for Ghazi Muhammad was not ubiquitous in Dagestan and his rise to power resulted in unrest among local political stakeholders.
In 1829, Ghazi Muhammad was proclaimed the first Imam of Caucasian Imamate in Ghimry. Soon thereafter, Ghazi Muhammad formally made the call for a holy war -- for a jihad. He also decreed that all wine should be destroyed publicly.
In 1830, Ghazi Muhammad and Shamil unsuccessfully tried to capture the Avar capital of Khunzakh from the khanum Pakkou-Bekkhe. Following the setback, Shamil prevailed upon Ghazi to bide his time for a while, until all the tribes became united in following sharia law.
In 1831, after a few months of quiet, Ghazi Muhammad attacked Northern Dagestan, and met with success there. His guerilla tactics caught the Russians unprepared. By 1832, Ghazi Muhammad (Qazi Mullah) was able to menace Vladikavkaz. However, the Russians repulsed the Imam's assault and, when the Russians took Ghimry, according to legend, they found
The Russians took the body of Ghazi Muhammad to Tarku, the capital of the Kumyk state, and gave it to the Kumyk Khan, who had been loyal to them. The body was displayed in the marketplace for a few days before being buried in the hills.