In the course of his campaigns against the Hindu Shahi kingdom, Mahmud of Ghazni advanced from
Nandana toward the
Kashmir Valley, where Trilochanapala, the Shahi ruler, had gathered his remaining forces to resist the invasion. The Shahi army previously received substantial reinforcement from
Sangramaraja the king of Kashmir who dispatched his prime minister Tunga.
Kalhana, in his 12th-century chronicle
Rajatarangini, provides a detailed account of Tunga's conduct during this engagement. Despite Trilochanapala's seasoned familiarity with the tactics of the Ghaznavid forces, Tunga disregarded the Shahi king's counsel to adopt a cautious defensive posture on the left bank of the
Tausi River. Overconfident in his command of a sizable Kashmiri force, Tunga crossed the river and engaged a Ghaznavid reconnaissance detachment, securing an initial victory that further inflated his assurance. The following morning, however, Mahmud brought his main army into the field in full strength. Tunga, abandoning the relative security of his earlier position, launched an impetuous assault. The Kashmiri troops, unprepared for the intensity of the Ghaznavid counterattack, broke ranks in disorder and fled the battlefield. Tunga himself escaped with his son, leaving the field in disarray. Trilochanapala attempted to stabilize the situation by rallying his own forces and those remnants of the Kashmiri contingent still willing to fight. Three Kashmiri generals Jayasimha, Srivardhana, and Vibhramarka continued the struggle even after the main Shahi army had collapsed. Despite a determined resistance, he suffered a decisive defeat. The engagement resulted in heavy losses for the Shahi alliance. == Aftermath ==