Rawalpindi, colloquially known as Pindi, is the third-largest city in the Pakistani province of Punjab and the fourth-most populous city in Pakistan. Located along the Soan River in north-western Punjab, Rawalpindi lies adjacent to Pakistan's capital, Islamabad, and the two are jointly known as the "twin cities".

Rawalpindi is located on the Pothohar Plateau and is close to the ancient city of Taxila, a UNESCO World Heritage Site. It was founded in 1493 by a Gakhar chief and remained a small town until the 18th century. Following the annexation of Punjab by the East India Company in 1849, Rawalpindi became the largest garrison town of the Northern Command of the British Indian Army with the establishment of the Rawalpindi Cantonment. It was granted municipal status in 1867. Following the independence of Pakistan on 14 August 1947, the city became home to the General Headquarters (GHQ) of the Pakistan Army.

Rawalpindi also served as the secondary capital of Pakistan, under Ayub Khan, before the new capital was established in Islamabad. Rawalpindi is linked to the national highways through the M-1 and M-2 motorways, and serves as a major logistics and transportation centre for northern Pakistan. The city is home to historic havelis and temples, and serves as a hub for tourists visiting Azad Kashmir, Taxila and Gilgit-Baltistan.

Etymology Previously known as Fatehpur Baori, the town fell into decay during the Mongol invasions of the 14th century. Afterwards, it came in hand of the Gakhars and a chief named Jhanda Khan restored it naming it Rawalpindi in 1493, literally meaning the "Village of Rawal" in Punjabi. Some accounts propose that a group of ascetics named Rawal arrived in this area and established the town.

History Origins The region around Rawalpindi has been inhabited for thousands of years. Rawalpindi falls within the ancient region of Gandhara, and thus the area contains many Buddhist ruins. In the north-west of Rawalpindi, traces have been found of at least 55 stupas, 28 Buddhist monasteries, 9 temples, and various artifacts in the Kharoshthi script.

To the southeast are the ruins of the Mankiala stupa – a second-century stupa where, according to the Jataka tales, a previous incarnation of the Buddha leapt off a cliff in order to offer his corpse to seven hungry tiger cubs. The town of Taxila is thought to have been home to one of the early universities or education centres of South Asia.

Medieval The first mention of Rawalpindi's earliest settlement dates from when Mahmud of Ghazni destroyed Rawalpindi and the town was restored by Gakhar chief Kai Gohar in the early 11th century. The town fell into decay again after Mongol invasions in the 14th century. Situated along an invasion route, the settlement did not prosper and remained deserted until 1493, when Jhanda Khan Gakhar re-established the ruined town, and named it Rawal.

Mughal period

During the Mughal era, Rawalpindi remained under the rule of the Gakhar clan, who in turn pledged allegiance to the Mughal Empire. Gakhars also fortified a nearby caravanserai, the Serai Rawat. The Attock Fort was constructed in 1581 after Akbar led a campaign against his brother Mirza Muhammad Hakim. In December 1585, the Emperor Akbar arrived in Rawalpindi, and remained in and around Rawalpindi for 13 years as he extended the frontiers of the empire, in an era described as a "glorious period" in his career as Emperor.

With the onset of rivalry between Gakhar chiefs after the death of Kamal Khan in 1559, Rawalpindi was awarded to his brother Said Khan by the Mughal Emperor. Emperor Jehangir visited the royal camp in Rawalpindi in 1622, where he first learned of Shah Abbas I of Persia's plan to invade Kandahar.

Sikh rule After the Mughal power declined, the town was captured in the mid-1760s from Muqarrab Khan Gakhar by the Sikhs under Sardar Gujjar Singh and his son Sahib Singh. The city's administration was handed to Sardar Milkha Singh, who invited traders from the neighbouring commercial centers of Jhelum and Shahpur to settle in the territory in 1766. The city began to prosper, although the population in 1770 is estimated to have been only about 300 families. For a time Rawalpindi became the refuge of Shah Shuja, the exiled king of Afghanistan, and of his brother Shah Zaman in the early 19th century.

The Sikh ruler Maharaja Ranjit Singh allowed the son of Sardar Milkha Singh to continue as Governor of Rawalpindi, after he seized it in 1810. Sikh rule over Rawalpindi was consolidated by defeat of the Afghans at Haidru in July 1813. In late 1820s, Rawalpindi and surrounding areas became a centre of jihad movement of Syed Ahmad Barelvi. The Mujahideen victory at Akora Khattak in 1827 was followed by defeat and death of Ahmad Barelvi in 1831 at Balakot. Jews first arrived in Rawalpindi's Babu Mohallah neighbourhood from Mashhad, Persia in 1839, in order to flee from anti-Jewish laws instituted by the Qajar dynasty. In 1841, Diwan Kishan Kaur was appointed Sardar of Rawalpindi.

On 14 March 1849, Sardar Chattar Singh and Raja Sher Singh of the Sikh Empire surrendered to General Gilbert near Rawalpindi, ceding the city to the British. The Sikh Empire then came to an end on 29 March 1849.

British period

Following Rawalpindi's capture by the British East India Company, 53rd Regiment of the company army took quarters in the newly captured city. The decision to man a permanent military cantonment in the city was made in 1851 by the Marquess of Dalhousie.

The city saw its first telegraph office in the early 1850s. The city's Garrison Church was built shortly after in 1854, and is the site where Robert Milman, Bishop of Calcutta, was buried following his death in Rawalpindi in 1876. The city was home to 15,913 people in the 1855 census. During the 1857 War of Independence, the Gakhar and Janjua tribes remained loyal to the British. Numerous civil and military buildings were built during the British era, and the Municipality of Rawalpindi was constituted in 1867, while the city's population as per the 1868 census was 19,228, with another 9,358 people residing in the city's cantonment.

The city was also connected to railways that offered connection to India and the northwest frontier in Peshawar in the 1880s. The Commissariat Steam Flour Mills were the first such mills in Punjab, and supplied most of the needs of British cantonments throughout Punjab. Rawalpindi's cantonment served as a feeder to other cantonments throughout the region.

Rawalpindi flourished as a commercial centre, though the city remained largely devoid of an industrial base during the British era. A large portion of Kashmir's external trade passing through the city; in 1885, 14% of Kashmir's exports, and 27% of its imports passed through the city. A large market was opened in central Rawalpindi in 1883 by Sardar Sujan Singh, while the British further developed a shopping district for the city's elite known as Saddar with an archway built to commemorate Brigadier General Massey.

Rawalpindi's cantonment became a major centre of military power of the Raj after an arsenal was established in 1883. Britain's army elevated the city from a small town, to the third largest city in Punjab by 1921. In 1868, 9,358 people lived in the city's cantonment – by 1891, the number rose to 37,870. In 1891, the city's population excluding the Cantonment was 34,153. The city was considered to be a favourite first posting for newly arrived soldiers from England, owing to the city's agreeable climate, and the nearby hill station of Murree.

In 1901, Rawalpindi was made the winter headquarters of the Northern Command and of the Rawalpindi military division. Riots broke out against British rule in 1905, following a famine in Punjab that peasants were led to believe was a deliberate act.

During World War I, Rawalpindi District "stood first" among districts in recruiting for the British war effort, with greater financial assistance from the British government channeled into the area in return.

By 1921, Rawalpindi's cantonment had overshadowed the city – Rawalpindi was one of seven cities of Punjab in which over half the population lived in the cantonment district. Communal riots erupted between Rawalpindi's Sikh and Muslim communities in 1926 after Sikhs refused to silence music from a procession that was passing in front of a mosque.

was launched as an ocean liner in 1925 by Harland and Wolff, the same company which built . The ship was converted into an armed vessel, and was sunk in October 1939. Scientists from Porton Down carried out poison gas tests on British Indian Army soldiers during the Rawalpindi experiments over the course of more than a decade beginning in the 1930s.

Partition

On 5 March 1947, members of Rawalpindi's Hindu and Sikh communities took a procession against the formation of a Muslim League ministry within the Government of Punjab. Policemen fired upon protestors, while Hindus and Sikhs fought against weaker Muslim counter-protestors. The area's first Partition riots erupted the next day on 6 March 1947, when the city's Muslims, angered by the actions of Hindus and Sikhs and encouraged by the Pir of Golra Sharif, raided nearby villages after they were unable to do so in the city on account of Rawalpindi's heavily armed Sikhs. Thousands of Sikhs and Hindus were killed in villages surrounding Rawalpindi, in large scale and widespread violence that came to be known as the Rawalpindi massacres.

At the dawn of Pakistan's independence in 1947 following the success of the Pakistan Movement, Rawalpindi was 43.79% Muslim, while Rawalpindi District as a whole was 80% Muslim. The region, on account of its large Muslim majority, was thus awarded to Pakistan. Rawalpindi's Hindu and Sikh population, who had made up 33.72% and 17.32% of the city, migrated en masse to the newly independent Dominion of India after anti-Hindu and anti-Sikh pogroms in western Punjab, while Muslim refugees from India settled in the city following anti-Muslim pogroms in eastern Punjab and northern India.

Modern

In the years following independence, Rawalpindi saw an influx of Muhajir, Pashtun and Kashmiri settlers. Having been the largest British Cantonment in the region at the dawn of Pakistan's independence, Rawalpindi was chosen as headquarters for the Pakistani Army, despite the fact that Karachi had been selected as the first capital.

In 1951, the Rawalpindi conspiracy took place in which leftist army officers conspired to depose the first elected Prime Minister of Pakistan, Liaquat Ali Khan. Rawalpindi later became the site of the Liaquat Ali Khan's assassination, in what is now known as Liaquat Bagh Park. In 1958, Field Marshal Ayub Khan launched his coup d'etat from Rawalpindi. In 1959, the city became the interim capital of the country under Ayub Khan, who had sought the creation of a new planned capital of Islamabad in the vicinity of Rawalpindi. As a result, Rawalpindi saw most major central government offices and institutions relocate to nearby territory, and its population rapidly expand.

The construction of Pakistan's new capital city of Islamabad in 1961 led to greater investment in Rawalpindi. Rawalpindi remained the headquarters of the Pakistani Army after the capital shifted to Islamabad in 1969, while the Pakistan Air Force continues to maintain an airbase in the Chaklala district of Rawalpindi. The military dictatorship of General Zia ul Haq hanged Pakistan's deposed Prime Minister, Zulfikar Ali Bhutto, in Rawalpindi in 1979.

In 1980, tens of thousands of Shia protestors led by Mufti Jaffar Hussain marched to Rawalpindi to protest a provision of Zia ul Haqs Islamization programme. A spate of bombings in September 1987 took place in the city killing 5 people, in attacks that are believed to have been orchestrated by agents of Afghanistan's communist government.