665 CE
South Asia (Northwest / Gandhara / Kabul) · Kingdom/Polity

Kabul Shahis (Turki and Hindu Shahis)

c. 565–1026 CE

Overview

Two successive dynasties controlling the strategically vital Kabul Valley, Kapisa, and Gandhara corridor between Central Asia and South Asia for over three and a half centuries (c. 665–1026 CE). The Buddhist Turkic Turk Shahis (665–822 CE) founded by Barha Tegin repeatedly repelled Umayyad and Abbasid Arab expansion while maintaining diplomatic relations with Tang China attested in both the Jiu Tangshu and Xin Tangshu. Their military zenith came under Fromo Kesaro (c. 739 CE), whose coin-commemorated victories over Arab forces bear a Byzantine-inspired 'Rome Caesar' title. The Hindu Shahi dynasty (822–1026 CE), founded when Brahmin minister Kallar deposed the last Turk Shahi Lagaturman — as recounted by Al-Biruni's Indica — reached its territorial zenith under Lalliya (c. 880–902 CE). The dynasty's final century was consumed by catastrophic wars against the Ghaznavid Empire: Jayapala's defeat at Peshawar (1001 CE) and Anandapala's failure at Chach (1008 CE) led to the final annexation of their last stronghold at Lahore c. 1026 CE under Mahmud of Ghazni.

Turk Shahi dynasty

Buddhist Turkic dynasty controlling Kabulistan and Gandhara 665–822 CE. Established by Barha Tegin upon overthrowing the Nezak Huns. Maintained diplomatic relations with Tang China and repeatedly resisted Umayyad and Abbasid Arab expansion. The dynasty ended when Brahmin minister Kallar deposed the last king Lagaturman c. 822 CE.

Hindu Shahi dynasty

Hindu Brahmin dynasty founded by Kallar after deposing the last Turk Shahi c. 822 CE. Controlled Kabul, Gandhara, and eventually retreated to western Punjab under Ghaznavid pressure. The last major Hindu power to resist Islamic expansion into northwest India. Decisively defeated by Mahmud of Ghazni 1001–1026 CE.

Territory Phases

  1. Turk Shahis (Founding)665 CE739 CE

    The founding phase of the Turk Shahi dynasty (665–739 CE). Established by Barha Tegin, who usurped Nezak Hun authority in Kabul following the Sasanian collapse. The core territory comprised the Kabul Valley and Kapisa (summer capital at Begram) extending south through Gandhara toward Peshawar, with suzerainty claims over Zabulistan to the south. Arab forces under Abd al-Rahman ibn Samura briefly occupied Kabul but were repelled. The dynasty maintained a Buddhist cultural framework and forged early diplomatic contacts with Tang China. Numismatic evidence (Macdowall; Alram et al.) documents the continuous Shahi coin series from this period. The Hindu Kush formed the northern frontier; the Sulaiman Range limited southern expansion.

  2. Kabul665 CE1001 CE

    Core royal seat of the Kabul Shahis across both dynasties. Famous for the 'Kabul idol' — a major Hindu deity image venerated at the court. Al-Biruni describes the city's religious significance. The city was the namesake of the entire Kabulistan administrative zone. Kabul changed hands repeatedly during the Ghaznavid wars before being definitively lost c. 1001 CE.

  3. Turk Shahis (Consolidation)680 CE739 CE

    The consolidation phase under Tegin Shah (680–739 CE), the longest-reigning early Turk Shahi ruler. In 719/720 CE, a Shahi embassy reached Tang Emperor Xuanzong's court seeking investiture — attested in both the Jiu Tangshu and Xin Tangshu. This Tang diplomatic alignment gave the Shahis crucial backing against the Umayyad Caliphate's eastward expansion. The territory spanned Kabulistan east to the Indus at Udabhandapura (Hund), with suzerainty over the Zunbil rulers of Zabulistan to the south. Winter capital operations at Udabhandapura supplemented the Kapisa summer base. The Shahis maintained effective independence despite repeated Arab governor campaigns.

  4. Turk Shahis (Peak Resistance)739 CE775 CE

    The military zenith of the Turk Shahis (739–775 CE) under Fromo Kesaro (r. c. 739–745 CE) and his son Bo Fuzhun. Fromo Kesaro achieved major victories over Umayyad Arab forces c. 739 CE, commemorated on overstruck coins bearing the Bactrian legend and a Byzantine-inspired 'Rome Caesar' title — reflecting the pan-Eurasian diplomatic network linking Kabul with Constantinople and Chang'an. The western frontier expanded toward Khorasan. Bo Fuzhun navigated the seismic aftermath of the Battle of Talas (751 CE), which ended Tang military power in Central Asia. He submitted diplomatically to Abbasid Caliph al-Mahdi while retaining practical autonomy. The territory represented the maximum Turk Shahi footprint before Abbasid pressure began to contract it.

  5. Turk Shahis (Abbasid Decline)775 CE822 CE

    The declining phase of the Turk Shahis (775–822 CE), marked by mounting Abbasid pressure and internal weakness. The catastrophic reign of Pati Dumi (r. c. 811–815 CE) saw a failed invasion of Khorasan during the Abbasid Fourth Fitna civil war; al-Tabari records he was forced to convert to Islam, pay ransom, and send a golden Buddha idol to Mecca. This humiliation fatally undermined dynastic authority. Lagaturman, the last Turk Shahi king (r. 815–822 CE), was deposed by his Brahmin minister Kallar c. 822 CE. The territory contracted to the Kabulistan and Gandhara core, losing effective control of Zabulistan. Al-Biruni's Indica (c. 1030) provides the primary account of this dynastic transition.

  6. Hindu Shahis (Transition)822 CE880 CE

    The founding and early consolidation phase of the Hindu Shahi dynasty (822–880 CE). Kallar, a Brahmin minister, overthrew Lagaturman and established Hindu Brahmin rule over Kabulistan and Gandhara. Al-Biruni's Indica provides the primary account of this transition. The capital shifted increasingly toward Udabhandapura (Hund) on the Indus as Kabul remained contested. The dynasty maintained the Shahi administrative and numismatic traditions while adopting Hindu religious frameworks. Territorial control was similar to the late Turk Shahi period, with fluctuating hold over Kabul proper and suzerainty over frontier zones.

  7. Hindu Shahis (Lalliya Expansion)880 CE921 CE

    The territorial zenith of the Hindu Shahis (880–921 CE) under Lalliya (r. c. 880–902 CE), also known as Khudarayaka. Lalliya campaigned aggressively against the Saffarid dynasty and defeated the Utpala dynasty of Kashmir, reasserting Shahi dominance over former frontier territories. The territory expanded south toward western Punjab and west toward Zabulistan. The Rajatarangini (Kalhana) records Lalliya's Kashmir campaigns. Udabhandapura (Hund) on the Indus served as the primary capital. The Hindu Shahis at this phase represented the principal indigenous power resisting Islamic expansion in northwest India.

  8. Hindu Shahis (Stability)921 CE964 CE

    A phase of relative stability under Bhimadeva (r. c. 921–964 CE). The Hindu Shahi kingdom defended against Samanid incursions from the west while maintaining territorial coherence from Kabulistan east through Gandhara to the Punjab west of the Indus. Udabhandapura remained the primary capital. This period of consolidation followed the Lalliya campaigns and preceded the catastrophic Ghaznavid wars. The Shahi court maintained Sanskrit inscriptional culture and patronized Hindu temples. Al-Biruni later recorded detailed observations of Shahi court culture from this era, preserved in his Indica.

  9. Hindu Shahis (Ghaznavid Wars)964 CE1026 CE

    The final phase of Hindu Shahi rule (964–1026 CE), defined by progressive territorial loss to the Ghaznavid Empire. Jayapala (r. 964–1001 CE) fought both Sebuktigin and Mahmud of Ghazni, losing Kabul and western territories. His defeat at the Battle of Peshawar (27 November 1001 CE) led to his suicide. Anandapala (r. 1002–1010 CE) built a Rajput coalition that fought at Chach (31 December 1008 CE) but was broken by a panicked war elephant. Trilocanapala retreated to Punjab; the Battle of Nandana (Salt Range, March 1014 CE) was fought in his reign. Bhimapala (r. 1021–1026 CE) presided over the final contraction to the Lahore area before Mahmud's final annexation c. 1026 CE. Al-Utbi's Tarikh-i Yamini and Gardizi's Zayn al-Akhbar provide detailed contemporary accounts of these wars.

  10. Nandana1001 CE1026 CE

    Mountain fortress in the Salt Range (modern Punjab, Pakistan), the last major Hindu Shahi stronghold in the final Ghaznavid wars. Mahmud of Ghazni captured Nandana in 1014 CE and used it as a base for his subsequent Somnath expedition. Al-Biruni accompanied Mahmud to Nandana and used observations from the fortress to calculate the Earth's circumference. The ruins survive as a UNESCO-monitored archaeological site.

Key Rulers

Barha Tegin

665 CE – 680 CE

★★★

Founder of Turk Shahi rule. Usurped Nezak Hun authority in Kabul amid Sasanian collapse, repelled early Arab incursions from Umayyad forces under Abd al-Rahman ibn Samura, and established the Buddhist Turk Shahi dynasty that would control Kabulistan for over 150 years.

Tegin Shah

Also known as: Khorasan Tegin Shah

680 CE – 739 CE

★★★

Longest-reigning early Turk Shahi ruler. Secured Tang tributary/diplomatic relations through an investiture embassy to Emperor Xuanzong (719/720 CE) and maintained suzerainty over the Zunbils of Zabulistan. Defended against repeated Arab governors while building a durable network of Central Asian alliances.

Fromo Kesaro

Also known as: Phromo Kesaro, Rome Caesar

739 CE – 745 CE

★★

Achieved major victories against Arab forces c. 739 CE, the high-water mark of Turk Shahi military resistance. His coins bear a Byzantine-inspired title ("Rome Caesar") reflecting the pan-Eurasian diplomatic environment. The Tang alignment reached its peak during his reign.

Bo Fuzhun

745 CE – 785 CE

★★

Son of Fromo Kesaro. Navigated the aftermath of the Battle of Talas (751 CE), which ended Tang military presence in Central Asia. Submitted diplomatically to Abbasid Caliph al-Mahdi while retaining practical autonomy in Kabulistan and Gandhara.

Pati Dumi

811 CE – 815 CE

★★

Launched an ill-timed invasion of Khorasan during the Abbasid civil war (Fourth Fitna). Arabic chroniclers report his catastrophic defeat: he was forced to convert to Islam, pay a massive ransom, and send a golden Buddha idol to Mecca — a humiliation that undermined the dynasty's prestige.

Lagaturman

815 CE – 822 CE

Last Turk Shahi ruler. Unpopular after the Abbasid defeats of his predecessor. Deposed by his Brahmin minister Kallar c. 822 CE, ending the Buddhist Turk Shahi dynasty and initiating the Hindu Shahi era.

Kallar

822 CE – 850 CE

★★★

Brahmin minister who founded the Hindu Shahi dynasty by overthrowing Lagaturman c. 822 CE. Re-established stability in Kabul under Hindu rule. Al-Biruni's Indica provides the primary account of this transition. His seizure of power inaugurated over two centuries of Hindu Shahi resistance to Islamic expansion.

Lalliya

Also known as: Khudarayaka

880 CE – 902 CE

★★★

The major expander of Hindu Shahi power. Reasserted control over former Shahi frontier territories, campaigned against the Saffarids, and defeated the Utpala dynasty of Kashmir c. 880–902 CE. His campaigns represent the Hindu Shahis at their territorial zenith.

Bhimadeva

921 CE – 964 CE

★★

Defended the Hindu Shahi kingdom against Samanid incursions. His long reign represented a period of relative stability and territorial consolidation west of the Indus before the catastrophic Ghaznavid wars of the late 10th century.

Jayapala

Also known as: Jayapaladeva

964 CE – 1001 CE

★★★

The great warrior-king of the Hindu Shahis. Fought both Sebuktigin and Mahmud of Ghazni in a series of desperate battles. Lost Kabul and western territories but resisted fiercely for decades. Defeated at the Battle of Peshawar (27 November 1001 CE) by Mahmud; committed suicide shortly after rather than face capture.

Anandapala

1002 CE – 1010 CE

★★

Son of Jayapala. Continued resistance against Mahmud of Ghazni, forging alliances with Rajput rulers and other regional powers. Fought key battles at Chach (31 December 1008 CE) but could not halt Ghaznavid advances.

Trilocanapala

Also known as: Trilochanapala

1010 CE – 1021 CE

★★

Last major Hindu Shahi fighter against the Ghaznavids. Retreated eastward into Punjab but maintained resistance until his death. The Battle of Nandana (March 1014 CE) in the Salt Range was fought during his reign.

Bhimapala

1021 CE – 1026 CE

Final ruler of the Hindu Shahis. The kingdom was reduced to the Lahore area. End of independent Kabul Shahi rule c. 1026 CE with Mahmud of Ghazni's final annexation.

Key Events

Establishment of Turk Shahi Rule665 CE

Kabul, Afghanistan

Barha Tegin usurped Nezak Hun authority in Kabul, establishing the Turk Shahi dynasty. Arab forces under Abd al-Rahman ibn Samura had briefly occupied Kabul but were repelled. The dynasty would control Kabulistan and Gandhara for nearly four centuries.

Tang Investiture Embassy720 CE

Kabul / Chang'an

Tegin Shah and the Zunbil ruler sent embassies to Tang Emperor Xuanzong (r. 712–756 CE) receiving investiture titles confirming tributary/diplomatic relations. Attested in both the Jiu Tangshu and Xin Tangshu. This alliance provided diplomatic backing against Arab expansion.

Victories of Fromo Kesaro over Arab Forces739 CE

Near Kabul, Afghanistan

Forces under Fromo Kesaro achieved major victories against Umayyad Arab armies c. 739 CE, the greatest Turk Shahi military success against the Caliphate. Evidenced by overstruck coins with Bactrian legends proclaiming the victory. These victories temporarily halted Arab penetration into Kabulistan.

Defeat and Humiliation of Pati Dumi815 CE

Near Herat, Afghanistan

Pati Dumi's invasion of Khorasan during the Abbasid civil war ended in catastrophic defeat. Arabic chroniclers including al-Tabari record he was forced to convert to Islam, pay a massive ransom, and send a golden Buddha idol to Mecca — a humiliation that fatally undermined the Turk Shahi dynasty's prestige and authority.

Deposition of Lagaturman — Hindu Shahi Transition822 CE

Kabul, Afghanistan

Brahmin minister Kallar deposed the last Turk Shahi king Lagaturman c. 822 CE, founding the Hindu Shahi dynasty. Al-Biruni's Indica (c. 1030) provides the primary account of this dynastic shift. The transition ended Buddhist Turk Shahi rule and began over two centuries of Hindu Brahmin governance of Kabulistan and Gandhara.

Campaigns of Lalliya — Hindu Shahi Zenith880 CE

Kabulistan / Kashmir borders

Lalliya (c. 880–902 CE) campaigned aggressively against the Saffarids and defeated the Utpala dynasty of Kashmir, reasserting Hindu Shahi control over former frontier territories. This represents the territorial zenith of the Hindu Shahis.

Battle of Peshawar1001 CE

Peshawar, Pakistan

Jayapala was decisively defeated by Mahmud of Ghazni on 27 November 1001 CE. The loss of territories west of the Indus River began the final Hindu Shahi decline. Jayapala reportedly committed suicide shortly after to avoid the shame of capture. This battle marks the beginning of the end for independent Shahi rule.

Battle of Chach1009 CE

Near Waihind (Hund/Udabhandapura), Pakistan

Anandapala forged alliances with Rajput rulers to fight Mahmud of Ghazni near Waihind on the Indus (c. 1009 CE). Despite initial Shahi successes, a panicked elephant broke the Hindu line, handing Mahmud victory. The coalition's failure ended coordinated resistance against the Ghaznavids.

Final Annexation by Mahmud of Ghazni1026 CE

Lahore, Pakistan

The final territories of the Hindu Shahis — reduced to the Lahore area — were absorbed into the Ghaznavid Empire c. 1026 CE under Mahmud of Ghazni. This ended over three and a half centuries of Kabul Shahi rule that had repeatedly resisted Arab, Samanid, and finally Ghaznavid expansion.

Related Civilisations

Sources

  1. Al-Biruni (tr. Sachau, E.C.) — Alberuni's India, 2 vols., London: Trübner, 1888
  2. Kalhana (tr. Stein, M.A.) — Rajatarangini: A Chronicle of the Kings of Kasmir, Westminster: Archibald Constable and Co., 1900
  3. MacDowall, D.W. — The Shahis of Kabul and Gandhara, Numismatic Chronicle 7th ser. vol. 8, 1968, pp. 189–224
  4. Rehman, Abdur — The Last Two Dynasties of the Sahis, Delhi: Renaissance Publishing House, 1988
  5. Bosworth, C.E. — The Ghaznavids: Their Empire in Afghanistan and Eastern Iran, Edinburgh University Press, 1963
  6. Inaba, Minoru — The Identity of the Turkish Rulers to the South of Hindukush, Zinbun 38, 2005, pp. 1–20
  7. Alram, Michael, Klimburg-Salter, Inaba, and Pfisterer (eds.) — Coins, Art and Chronology II, Vienna: ÖAW, 2010
  8. Kuwayama, Shoshin — Across the Hindukush of the First Millennium, Kyoto: Institute for Research in Humanities, Kyoto University, 2002
  9. al-Tabari — History of the Prophets and Kings (Tarikh al-Rusul wa al-Muluk), c. 915 CE
  10. al-Utbi — Tarikh-i Yamini (Kitab-i Yamini), c. 1020–1021 CE
  11. Gardizi — Zayn al-Akhbar, c. 1049–1052 CE
  12. Liu Xu et al. — Jiu Tangshu (Old Book of Tang), 945 CE
  13. Ouyang Xiu et al. — Xin Tangshu (New Book of Tang), 1060 CE
  14. Mishra, Yogendra — The Hindu Sahis of Afghanistan and the Punjab, Patna: Sm. Sushila Devi, 1972