Gujranwala
Sikh

In 1707, with the death of the Mughal emperor Aurangzeb, Mughal power began to rapidly weaken especially following Nader Shah's invasion in 1739 and then completely dissipated from the Punjab region due to the invasions of Ahmad Shah Abdali who raided Punjab many times between 1747 and 1772 causing much devastation and chaos.

Abdali's control over the region began to weaken in the latter part of the 18th century with the rise of the Sikh Misls (independent chieftainships usually consisting of the chief's kinsmen) who overran Punjab. Charat Singh, ruler of the Sukerchakia Misl, established himself in a fort which he had built in the area of Gujranwala between 1756 and 1758.

Nuruddin, a Jammu-based Afghan (Pashtun) general, was ordered by Abdali to subdue the Sikhs but was driven back at Sialkot by Sikh soldiers led by Charat Singh. In 1761, Khwaja Abed Khan, Abdali's governor in Lahore, tried to besiege Charat Singh's base in Gujranwala but the bid misfired. The Sikh misls rallied to his support by attacking Afghan officers wherever they were found. A fleeing Abed Khan was pursued by Sikh contingents led by the Ahluwalia misl into Lahore, where he was killed. Charat Singh made Gujranwala the capital of his misl in 1763.

In a 1774 battle waged in Jammu, Charat Singh of the Sukerchakia misl and Jhanda Singh of the powerful Bhangi misl, fighting on opposite sides, were both killed. Before his death, Charat Singh had become master of large and contiguous territories in the three doabs between the Indus and the Ravi. He was succeeded by his son Maha Singh who added to the lands that Charat Singh had not only captured but also capably administered.

In the Gujranwala area in the 1770s, the Jat Chathas of Wazirabad and Rajput Bhattis of Hafizabad (Muslims in both cases) offered 'fierce resistance' to the Sukerchakias, whose attack was aided by Sahib Singh of the Bhangi misl. Describing the conflict, the (British) writer of the Gujranwala Gazetteer wrote that besieged for weeks in his fortress, Ghulam Muhammad Chatha eventually surrendered after Maha Singh assured him safe passage to Mecca, but the promise was 'basely broken' when Ghulam Muhammad was shot and his fortress razed to the ground. Rasoolnagar (Prophet's city) which belonged to the Chathas was renamed Ramnagar (Ram's city) to humiliate the Muslims. The Gazetteer noted that the treacherous killing of Chatha and his resistance was remembered 'in many a local ballad' in Gujranwala. The Bhattis of Hafizabad tehsil, who were Muslim Rajputs, did not cease their resistance to the Sukerchakias until 1801 when their leaders were killed and their possessions captured. Some Bhattis fled to Jhang.

Ranjit Singh, Maha Singh's son and successor who would later go on to establish the Sikh Empire, was born in 1780 in Gujranwala's Purani Mandi market. Ranjit Singh maintained Gujranwala as his capital initially after rising to power in 1792. His most famous military commander Hari Singh Nalwa, who was also from Gujranwala, built a high mud wall around Gujranwala during this era and established the city's new grid street-plan that exists until the present day. Gujranwala remained Ranjit Singh's capital until he captured Lahore from the Durrani Afghans in 1799, at which point the capital was moved there, leading to the relative decline of Gujranwala in favour of Lahore. Jind Kaur, the last queen of Ranjit Singh and mother of Duleep Singh, was born in Gujranwala in 1817.

By 1839, the city's bazaars were home to an estimated 500 shops, while the city had been surrounded by a number of pleasure gardens, including one established by Hari Nalwa Singh that was famous for its vast array of exotic plants.
detectable_content:number_placeholders[5], language:response_language[Dutch]