 Among the Hindu Shahi dynasty rulers, Raja Jayapala is the best known.Mehmood of Ghazni defeated Raja Jayapala during his first campaign.However, there is no historical evidence that Mehmood of Ghazni ever visited or passed through Mansehra.