Lahore began to be incurred upon yet again the Khokhar tribe, and so the city was granted to Bahlul Lodi in 1441 by the Sayyid dynasty in Delhi, though Lodi would then displace the Sayyids in 1451 by establishing himself upon the throne of Delhi.
Governorship of Lahore was transferred by Sikandar Lodi to Umar Khan Sarwani, who quickly left management of this city to his son Said Khan Sarwani.
Lahore reached the height of its splendour under the Mughal Empire between the late 16th and early 18th century, and served as its capital city for a number of years.
The city was captured by the forces of the Afsharid ruler Nader Shah in 1739, and fell into a period of decay while being contested between the Afghans and the Sikhs.
Lahore at this time had more poets writing in Persian than any city in Persia or Khorasan.
Following the death of Aibak, Lahore came to be disputed among Ghurid officers.
Lahore is also home to the Lahore Fort and Shalimar Gardens, both of which are UNESCO World Heritage Sites.
By the time of rule of the Mughal empire's greatest emperors, a majority of Lahore's residents did not live within the walled city itself but instead lived in suburbs that had spread outside of the city's walls.During this period, Lahore was closely tied to smaller market towns known as qasbahs, such as Kasur and Eminabad, as well as Amritsar, and Batala in modern-day India, which in turn, linked to supply chains in villages surrounding each qasbah.and Lahore reached its cultural zenith during this period, with dozens of mosques, tombs, shrines, and urban infrastructure developed during this period.Lahore experienced some of the worst rioting during the Partition period preceding Pakistan's independence.with major attractions including the Walled City, the famous Badshahi and Wazir Khan mosques and Sikh shrines.