Babur's army quickly captured Lahore and Dipalpur.
The Confederacy drove out the Mughals, repelled several Afghan invasions and in 1764 captured Lahore.
While Sikandar was busy with his struggle against Ibrahim, Humayun captured Lahore in February 1555.
Humayun took this advantage and captured Lahore and Delhi, but he died in 1556 AD.
The rationale for this was that a ceasefire was to be signed soon, and had India captured Lahore it would likely have been returned in ceasefire negotiations.
He then captured Lahore and Multan, giving him control of the Punjab region.
In 1799, Ranjit Singh captured Lahore from the Bhangi Misl and later made it his capital.
When Anandapala and his successor died, Mahmud Ghaznavi captured Lahore.
In 1179 Muhammad of Ghor took Peshawar, capturing Lahore from Khusru Malik two years later.
He captured Lahore in 1186 and constructed the fortress of Sialkot.