Mohammad Shah was son of Abbas Mirza, the crown prince and governor of Azerbaijan, who in turn was the son of Fat′h Ali Shah Qajar, the second Shah of the dynasty. At first, Abbas Mirza was the chosen heir to the Shah. However, after he died, the Shah chose Mohammad to be his heir. After the Shah's death, Ali Mirza, one of his many sons, tried to take the throne in opposition to Mohammad. His rule lasted for about 40 days. Nonetheless, he was quickly deposed at the hands of Mirza Abolghasem Ghaem Magham Farahani, a politician, scientist, and poet.
Reign
Politics and the military
Ali was forgiven by Mohammad, who had then become Shah. A supporter of Mohammad, Khosrow Khan Gorji, was awarded with the governorship of Isfahan, while Farahani was awarded the position of chancellorship of Persia by Shah at the time of his inauguration. He was later betrayed and executed by the order of the Shah in 1835, at the instigation of Hajj Mirza Aghasi, who would become the Ghaem Magham's successor and who greatly influenced Mohammad's policies. One of his wives, Malek Jahan Khanom, Mahd-e Olia, later became a large influence on his successor, who was their son. He also tried to capture Herat twice. To try to defeat the British, he sent an officer to the court of Louis-Philippe of France. In 1839, two French military instructors arrived at Tabriz to aid him. However, both attempts to capture the city were unsuccessful. Towards the end of Mohammad Shah's short reign, British officials petitioned for a farman or decree against the slave trade. In 1846, the British Foreign Office sent Justin Sheil to Persia to negotiate with the Shah on the slave trade. At first the Shah refused to limit either slavery or the slave trade on the grounds that the Quran did not forbid it and he could not forbid something that the Quran deemed legal. Further the Shah asserted that banning the slave trade would reduce converts to Islam. However, in 1848, Mohammad Shah made a small concession and issued a farman banning the maritime trade of slaves. Mohammad was known to be somewhat sickly throughout his life, and he finally died at the age of 40 of gout in Mohammadieh Palace which now called Bagh-e Ferdows.
Cultural trends
Mohammad fell into the influence of Russia and attempted to make reforms to modernize and increase contact with the West. This work was continued by his successor, Nasser-al-Din Shah Qajar, during the reign of his first prime ministerAmir Kabir. These efforts to modernize the country brought about a great interest in photography. Other artwork during this time includes a number of small-scale paintings on lacquer. During Mohammad's reign, the religious movement of Bábism began to flourish for the first time. The Persian symbol of The Lion and Sun and a red, white, and green background became the flag at this time.