Sultan Mahmud of Ghazni launched several invasions into the Indian subcontinent starting from the late 10th century. One of his most significant early campaigns involved a conflict with the Hindushahi ruler Jaypala in 1001 CE, in which Jaypala was defeated.