sentences:  However, despite the heavy losses of the enemy, he lost the battle and suffered much financial and territorial loss.This was Anandapala's last stand against Sultan Mahmud of Ghazni.He eventually signed a treaty with the Ghaznavid Empire in 1010 and shortly a year later died as a result of a natural death.