The Siege of Lahore in 1186 brought the end of Ghaznavid rule with Muhammad of Ghor annexing their last-surviving principality from Khusrau Malik. Across the 1180s, Muhammad had made at least three incursions into the Ghaznavid domain centered around Punjab. The first attempt resulted in a truce and the second — despite the plunder of Lahore and gaining of Sialkot — turned out to be unsuccessful before his third attempt secured victory employing deceit. Both the reigning Ghaznavid Sultan and the prince were imprisoned and executed.