Shah Alam II (, ; 25 June 1728 – 19 November 1806), also known by his birth name Ali Gohar, or Ali Gauhar, was the seventeenth Mughal emperor and the son of Alamgir II.Dalrymple, W. (2019),The Anarchy p89, London: Bloomsbury
The reign of Shah Alam saw a number of invasions, the first and foremost by Ahmed Shah Abdali in 1761, which led to the third battle of Panipat between the Maratha Empire and the Afghans under Abdali. The invading forces of Abdali then drove out the Marathas led by Sadashivrao Bhau, deposed Shah Jahan III, the puppet Mughal emperor of Imad-ul-Mulk, and installed Shah Alam II as the rightful emperor (17601772).
Despite his rightful claims to the throne, Shah Alam II was unable to return to Delhi until 1772, under the protection of Mahadaji Scindia of Gwalior. He fought against the East India Company at the Battle of Buxar (1764), and was forced to grant the British the rights to collect taxes in Bengal, Bihar and Orissa. During his reign the Mughal authority saw a brief revival in northern India under the capable general Mirza Najaf Khan, but after his death in 1782, the Mughal power collapsed for one last time. In 1788, when Shah Alam was a prisoner of Ghulam Qadir, he was blinded. His power was so depleted during his later reign that it led to a saying in the Persian language, Sultanat-e-Shah Alam, Az Dilli ta Palam, meaning, 'The empire of Shah Alam is from Delhi to Palam', Palam being a suburb of Delhi. In 1803 the British captured Delhi after their victory in the Second Anglo-Maratha War, with Shah Alam becoming their pensioner.
Shah Alam II authored his own Diwan of poems and was known by the pen-name Aftab. His poems were guided, compiled and collected by Mirza Fakhir Makin. He also composed the Ajaib-ul-Qasas, which is considered one of the earliest and most prominent books of prose in Urdu.
Early life Ali Gohar was born to Shahzada (Prince) Aziz-ud-Din, son of the deposed Mughal Emperor Jahandar Shah, on 25 June 1728. Alongside his father, he grew up in semi-captivity in the Salatin quarters of the Red Fort. However, unlike the majority of Mughal princes growing up in similar circumstances, he is not recorded to have become a decadent prince by the time his father became emperor, and therefore was naturally given high appointments in the course of his father's reign.
Upon his father's accession, he became the Wali al-Ahd (Crown Prince) of the empire, and became his father's principal agent, though almost all power lay in the Wazir Imad-ul-Mulk's hand. His quarrels with that amir, and fear for his own life, caused him to flee from Delhi in 1758.
Escape from Delhi Prince Ali Gauhar, afterwards Emperor Shah Alam II, had been the heir apparent of his father Alamgir II. Prince Ali Gauhar's father had been appointed Mughal Emperor by Vizier Imad-ul-Mulk and Maratha Peshwa's cousin Sadashivrao Bhau.
Prince Ali Gauhar organized a militia and made a daring escape from Delhi. He appeared in the Eastern Subah in 1759, hoping to strengthen his position by attempting to regain control over Bengal, Bihar and Odisha.
Very soon however, Najib-ud-Daula forced the usurper Imad-ul-Mulk to flee from the capital by gathering a large Mughal Army outside Delhi. He used the army to depose the recreant Shah Jahan III. Najib-ud-Daula and Muslim nobles then planned to defeat the Marathas by maintaining correspondence with the powerful Ahmad Shah Durrani. After Durrani decisively defeated the Marathas, he nominated Ali Gauhar as the emperor under the name Shah Alam II.
Bengal War In 1760, after Shah Alam's militia gained control over pockets in Bengal, Bihar and parts of Odisha, Prince Ali Gauhar and his Mughal Army of 30,000 intended to overthrow Mir Jafar and Imad-ul-Mulk as they tried to capture or kill him by advancing towards Awadh and Patna in 1759. But the conflict soon involved the intervention of the assertive East India Company.
The Mughals clearly intended to recapture their breakaway Eastern Subah led by Prince Ali Gauhar, who was accompanied by a Militia consisting of persons like Muhammad Quli Khan, Kadim Husein, Kamgar Khan, Hidayat Ali, Mir Afzal and Ghulam Husain Tabatabai. Their forces were reinforced by the forces of Shuja-ud-Daula, Najib-ud-Daula and Ahmad Khan Bangash. The Mughals were also joined by Jean Law and 200 Frenchmen and waged a campaign against the British during the Seven Years' War.
Prince Ali Gauhar successfully advanced as far as Patna, which he later besieged with a combined army of over 40,000 in order to capture or kill Ramnarian, a sworn enemy of the Mughals. Mir Jafar was in terror at the near demise of his cohort and sent his own son Miran to relieve Ramnarian and retake Patna. Mir Jafar also implored the aid of Robert Clive, but it was Major John Caillaud, who dispersed Prince Ali Gauhar's army in 1761 after four major battles including Battle of Patna, Battle of Sirpur, Battle of Birpur and Battle of Siwan.
After negotiations assuring peace Shah Alam II was escorted by the British to meet Mir Qasim the new Nawab of Bengal, who was nominated after the sudden death of Miran. Mir Qasim soon had the Mughal Emperor's investiture as Subedar of Bengal, Bihar and Odisha, and agreed to pay an annual revenue of 2.4 million dam. Shah Alam II then retreated to Allahabad and was protected by the Shuja-ud-Daula, the Nawab of Awadh from 1761 until 1764. Meanwhile, Mir Qasim's relations with the East India company began to worsen. He initiated reforms that withdrew the tax exemptions enjoyed by the East India Company, he also ousted Ramnarian and created firelock manufacturing factories at Patna with the sole purpose of improving the newly reformed Mughal Army.
Angered by these developments, the East India Company sought to oust Mir Qasim. Court intrigues encouraged by the East India Company forced Mir Qasim to leave Bengal, Bihar and Odisha. Mir Qasim on his part encouraged Shuja-ud-Daula the Nawab of Awadh and Shah Alam II to engage the British.
Emperor from Allahabad
Shah Alam II was acknowledged as the emperor by the Durrani Empire. His rule extended to the 24 Parganas of the Sundarbans, Mir Qasim, Nawab of Bengal and Murshidabad (and Bihar),Raja of Banares, Nizam of Hyderabad, Nawab of Ghazipur, Sultan of Mysore, Nawab of Kadapa and Nawab of Kurnool, Nawab of the Carnatic of Arcot and Nellore, Raja of Kashmir, Nawab of Junagarh, Nawab of Rohilkhand of Lower Doab and Upper Doab, and Nawab of Bahawalpur.
Battle of Buxar
The Battle of Buxar was fought on 22 October 1764 between the combined armies of Mir Qasim, the Nawab of Bengal; Shuja-ud-Daula the Nawab of Awadh; the Mughal Emperor Shah Alam II and the forces under the command of the East India Company led by Hector Munro.A Dictionary of Modern Indian History (1707–1947), Parshotam Mehra, , 1985 ed., Oxford University Press The battle was fought at Buxar, a town located on the bank of the Ganges river then within the territory of Bengal, and was a decisive victory for the East India Company.
Treaty of Allahabad
Soon after the Battle of Buxar, Shah Alam II, a sovereign who had just been defeated by the British, sought their protection by signing the Treaty of Allahabad in the year 1765. Shah Alam II was forced to grant the Diwani (right to collect revenue) of Bengal (which included Bihar and Odisha) to the East India Company in return for an annual tribute of 2.6 million rupees to be paid by the company from the collected revenue. Tax exemption status was also restored to the company. The company further secured the districts of Kora and Allahabad which allowed the East India Company to collect tax from more than 20 million people. The East India Company thus became the Imperial tax collector in the former Mughal province of Bengal. The Company appointed a deputy, Nawab Muhammad Reza Khan to collect revenue on their behalf.
Absence from Delhi
Shah Alam II's absence from Delhi was due to the terms of the treaty he had signed with the British. But his son and heir apparent Prince Mirza Jawan Bakht and Najib-ul-Daula, represented the emperor for the next 12 years in Delhi.
Return to Delhi
Shah Alam II resided in the fort of Allahabad for six years. Warren Hastings, the head of East India Company got appointed as the first Governor of Bengal in 1774. This was the period of "Dual rule" where East India Company enacted laws to maximise collection of revenue and the Mughal Emperor appointed Nawab looked after other affairs of the province. East India Company later discontinued the tribute of 2.6 million Rupees and later also handed over the districts of Allahabad and Kora to the Nawab of Awadh. These measures amounted to a repudiation of the company's vassalage to the emperor as Diwan (tax collector). In 1793 East India Company was strong enough and abolished Nizamat (local rule) completely and annexed Bengal. Weakened Shah Alam II agreed to the consultation of the East India Company, who advised him never to trust the Marathas.
In the year 1771 the Marathas under Mahadaji Scindia returned to northern India and even captured Delhi. Shah Alam II, was escorted by Mahadaji Scindia and left Allahabad in May 1771 and in January 1772 reached Delhi. Along with the Marathas they undertook to win the crown lands of Rohilkhand and defeated Zabita Khan, capturing the fort of Pathargarh with its treasure. The emperor returned to the throne in Delhi in 1772, under the protection of Mahadaji Scindia of Gwalior. The emperor became a client of the Gwalior State whose Peshwa demanded tribute, which the Moguls are known to have paid so as to avoid any further conflict with the Confederacy. Later conflict arose between Shah Alam and Mahadaji over the spoils captured from defeating Rohillas. Mahadaji besieged Delhi and bombarded the fort itself. However he was forced to abandon siege and go back to Pune after receiving the news of the death of Peshwa, leaving Shah Alam in complete control of the city.
Reformation of the Mughal Army
One of his first acts was to strengthen and raise a new Mughal Army, under the command of Mirza Najaf Khan. This new army consisted of infantrymen who successfully utilised both Flintlocks and Talwars in combat formations, they used elephants for transportation and were less dependent on artillery and cavalry. Mirza Najaf Khan is also known to have introduced the more-effective Firelock muskets through his collaboration with Mir Qasim, the Nawab of Bengal.
Foreign relations
Shah Alam II, was well supported by Jean Law de Lauriston and 200 Frenchmen during his campaign to regain the Eastern Subahs (during the Seven Years' War). The brainchild of the campaign was Ghulam Husain Tabatabai, who had gained much administrative and military experience from both the French and the Dutch.
After Shah Alam II's defeat in the Battle of Buxar, the French once again reached out to emperor under Pierre André de Suffren in the year 1781, who initiated a plan to capture Bombay and Surat from the Maratha Confederacy and the British, with the co-operation of Mirza Najaf Khan, this action would eventually lead to Asaf Jah II to join Shah Alam II and the French and assist Hyder Ali to capture Madras from the East India Company. The internal conflicts within the Mughal imperial court would not allow the emperor to make such a bold move against the British.
Political turmoil
Jats
Jats rose in retaliation of religious intolerance pursued by Aurangzeb. The Jat kingdom of Bharatpur waged many wars against Mughal Delhi and in the 17th and 18th century carried out numerous campaigns in Mughal territories including Agra. Mughals were defeated by the Marathas in 1757; and Mughal possessions and territories were annexed by the Jats led by Suraj Mal.