Answer
Gyanendra was the last king of the Shah dynasty, which ruled Nepal from 1768 to 2008. The dynasty was founded by Prithvi Narayan Shah, who conquered most of Nepal from the Gorkha Kingdom. The Shah dynasty was overthrown in 2008 after a popular uprising, and Nepal became a republic.