As one of the regions oldest nation-states, Nepal was unified by the Shah Dynasty and has since been ruled by the Rana royal family after a coup d'état that installed Jung Bahadur Kunwar as prime minister, and later Maharaja of Kaski and Lamjung. During the 19th century, Nepal's expansionist aspirations came in conflict with the British Empire and the British East India Company culminating in the Anglo-Nepalese War of 1814-16.