Mansehra is a city in the Khyber Pakhtunkhwa province of Pakistan and the headquarters of Mansehra District. It is the 71st largest city of Pakistan and 7th largest city in the province. The name of the city (written in Hindko, Urdu and Gojri as مانسہرہ, in Pashto as مانسهره) is derived from that of its founder, Sardar Maha Singh Mirpuri, who was a Sikh administrator and general in the Sikh Khalsa Army during the rule of the Khalsa Empire of Maharaja Ranjit Singh. The city hosts the Mansehra Shiva Temple, which is famous for its annual Shivarathri festival.