Jayapala Shahi, or simply Jayapala, was ruler of the Kabul Shahi dynasty from 964 to 1001 CE in what is now eastern Afghanistan and northwestern Pakistan. He was the son of Asatapala and father of Anandapala. Jayapala succeeded the last Brahman Shahi king Bhimadeva in about 964 CE, and thus began the Janjua phase of Shahiya dynasties. Epithets from the Bari Kot inscriptions record his full title as "Parambhattaraka Maharajadhiraja Paramesvara Sri Jayapala Deva" the first emperor of the Janjua Shahi phase.
Jayapala is known for his struggles in defending his kingdom against the Ghaznavids of nearby Ghazni. He 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 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 the field once more. Again defeated, he lost lands all the way from the Kabul Valley to the Indus River. In the year 1001, soon after Mahmud of Ghazni came to power and was occupied with the Qarakhanids to his north, he attacked Ghazni once more and upon suffering yet another defeat by the powerful Ghaznavid forces, near present-day Peshawar, committed himself to a funeral pyre because his subjects thought he had brought disaster and disgrace to the Shahi dynasty.
Jayapala was succeeded by his son Anandapala and other succeeding generations of the Shahiya dynasty took part in various unsuccessful campaigns against Ghazni, and were eventually exiled to Kashmir Siwalik Hills.