 In the 10th century, the area came under the control of Sultan Sabuktigin who defeated Raja Jaipal, the Hindu ruler of Lahore.Sabuktgin's son Sultan Mahmud of Ghazni made this area the rallying point for his numerous raids into the interior of India.In the 12th century, the Persians of Ghor (Ghurids) overthrew the Ghaznavis and the era of Ghaznavis came to an end.