It lies 811 miles (1,305 km) northeast of Karachi in the upper Indus plain on the Rāvi River, a tributary of the Indus.
Little is known of the history of the settlement prior to the Muslim period. Hindu legend attributes the founding of Lahore to Lava, or Lōh, son of Rāma, for whom it is said to have been named Lōhāwar. The city of “Labokla” mentioned in Ptolemy’s 2nd-century Guide to Geography may have been Lahore.
The city has had a turbulent history. It was the capital of the Ghaznavid dynasty from 1163 to 1186. A Mongol army sacked Lahore in 1241. During the 14th century, the city was repeatedly attacked by the Mongols until 1398 when it fell under the control of the Turkic conqueror Timur. In 1524 it was captured by the Mughal Bābur’s troops. This marked the beginning of Lahore’s golden age under the Mughal dynasty when the city was often the place of the royal residence. It was greatly expanded during the reign of Shāh Jahān (1628–58) but declined in importance during the reign of his successor, Aurangzeb.
From the death of Aurangzeb (1707), Lahore was subjected to a power struggle between Mughal rulers and Sikh insurrectionists. With the invasion of Nādir Shāh in the mid-18th century, Lahore became an outpost of the Iranian empire. However, it soon was associated with the rise of the Sikhs, becoming once more the seat of a powerful government during the rule of Ranjit Singh (1799–1839). After Singh’s death, the city rapidly declined, and it passed under British rule in 1849. When the Indian subcontinent received independence in 1947, Lahore became the capital of West Punjab province; in 1955 it was made the capital of the newly created West Pakistan province, which was reconstituted as Punjab province in 1970.