Lahore appears as the capital of the…
1019 CE
Lahore appears as the capital of the Punjab for the first time under Anandapala—the Hindu Shahi king who is referred to as the ruler of (hakim i lahur)—after leaving the earlier capital of Waihind.
Few references to Lahore remain from before its capture by Sultan Mahmud of Ghazni in the eleventh century.
The sultan takes Lahore after a long siege and battle in which the city is torched and depopulated.