<Tr> <Th> Appointer </Th> <Td> Hereditary </Td> </Tr> <Tr> <Th> Pretender (s) </Th> <Td> Mahārājdhirāja Gyanendra Bir Bikram Shah </Td> </Tr> <P> The King of Nepal, traditionally known as the Mahārājādhirāja (Nepali: श्री ५ महाराजधिराज), was Nepal's head of state and monarch from 1768 to 2008 . He served as the head of the Nepalese monarchy--Shah Dynasty . The monarchy was founded in 1768 and was abolished on 28 May 2008 by the 1st Constituent Assembly . The subnational monarchies in Mustang, Bajhang, Salyan, and Jajarkot were also abolished in October . </P> <P> The Kingdom of Nepal was founded on 25 September 1768 by Prithvi Narayan Shah, a Gorkha king who succeeded in unifying the kingdoms of Kathmandu, Patan, and Bhaktapur into a single state under his Shah dynasty . The Kingdom of Nepal was de jure an absolute monarchy for most of its history . However, from 1846 until the Revolution of 1951, the country was de facto ruled by the hereditary Prime Ministers from the Rana dynasty, reducing the role of the Shah monarch to that of a figurehead . In November 1990, after the Jana Andolan movement, the new Constitution was adopted and the country became a constitutional monarchy . </P>

When did the king of nepal finally take over as the head of government
find me the text answering this question