Jayapala, was the ruler of the Kabul Shahi dynasty from 964 to 1001 CE. His kingdom stretched from Laghman to Kashmir and Sirhind to Multan, with Peshawar being in the center. He was the son of Hutpal and the father of Anandapala. Epithets from the Bari Kot inscriptions record his full title as "Parama Bhattaraka Maharajadhiraja Sri Jayapaladeva".
Jayapala is known for his struggles in defending his kingdom against the Ghaznavids in the modern-day eastern Afghanistan and Pakistan region. Jayapala saw a danger in the consolidation of the Ghaznavids and invaded their capital city of Ghazni both in the reign of Sebuktigin and in that of his son Mahmud, which initiated the Muslim Ghaznavid and Hindu Shahi struggles. Sebuk Tigin, however, defeated him, and he was forced to pay an indemnity. Jayapala defaulted on the payment and took to the battlefield once more. Jayapala however, lost control of the entire region between the Kabul Valley and Indus River.
Before his struggle began Jaipal had raised a great army of Indians which included Rajputs. When Jaipal went to the Punjab region, his army was raised to 100,000 horsemen and an innumerable host of foot soldiers. According to Ferishta:
"The two armies having met on the confines of Lumghan, Subooktugeen ascended a hill to view the forces of Jeipal, which appeared in extent like the boundless ocean, and in number like the ants or the locusts of the wilderness. But Subooktugeen considered himself as a wolf about to attack a flock of sheep: calling, therefore, his chiefs together, he encouraged them to glory, and issued to each his commands. His soldiers, though few in number, were divided into squadrons of five hundred men each, which were directed to attack successively, one particular point of the Hindoo line, so that it might continually have to encounter fresh troops."
However, the army was hopeless in battle against the western invaders, particularly against the young Mahmud of Ghazni. In the year 1001, soon after Sultan Mahmud came to power and was occupied with the Qarakhanids north of the Hindu Kush, Jaipal attacked Ghazni once more and upon suffering yet another defeat by the powerful Ghaznavid forces, near present-day Peshawar, committed suicide because his subjects thought he had brought disaster and disgrace to the Shahi dynasty.
Jayapala was succeeded by his son Anandapala, who along with other succeeding generations of the Shahiya dynasty took part in various unsuccessful campaigns against the advancing Ghaznvids but were unsuccessful. The Hindu rulers eventually exiled themselves to the Kashmir Siwalik Hills.
- "AMEER NASIR-OOD-DEEN SUBOOKTUGEEN". Ferishta, History of the Rise of Mohammedan Power in India, Volume 1: Section 15. Packard Humanities Institute. Retrieved 2012-12-30.
- Sailendra Nath Sen. Ancient Indian History and Civilization. New Age International. p. 342. Retrieved 25 January 2014.
- P. M. Holt, Ann K. S. Lambton, Bernard Lewis, ed. (1977), The Cambridge history of Islam, Cambridge University Press, p. 3, ISBN 0-521-29137-2, "... Jaypala of Waihind saw danger in the consolidation of the kingdom of Ghazna and decided to destroy it. He therefore invaded Ghazna, but was defeated ..."