Final answer:
Throughout history, the rulers of Lahore faced defeat by different conquerors, most notably by Muhammad of Ghur in the 12th century and later by Babur who founded the Mughal Empire in 1526.
Step-by-step explanation:
The ruler of Lahore was defeated multiple times throughout history by various invading forces. During the twelfth century, Muhammad of Ghur defeated the Rajputs and established a Muslim state in Delhi, which remained as the Delhi Sultanate for over three centuries. Later, in the sixteenth century, Babur, a descendant of Timur and Genghis Khan, defeated the Delhi Sultanate's army in 1526 and founded the Mughal Empire. Additionally, in 1555, after a period of exile, Humayun reconquered the Mughal throne. The Mughal Empire successfully fended off another significant threat when they repelled the Mongol invasions attempting to seize the subcontinent.