The Kingdom of Nepal, situated in the Himalaya, is the world's only Hindu kingdom. It is in South Asia, sharing borders with the People's Republic of China (Tibet Autonomous Region) and India. Nepal has a long history that has extended for millennia. The Kirati are one of the first Nepali groups known to historians, having migrated from the east in the 7th or 8th century BC. Lord Gautam Buddha was born in Lumbini, Nepal circa 563 BC and the Emperor Aśoka ruled over a vast empire including North India and southern Terai region of present day Nepal (though the hilly and mountainous regions were not a part of Aśoka's Empire) in the 1st century BC. By 200 AD, the Buddhist empire was displaced by resurgent Hindu fiefdoms such as the Licchavi dynasty.
Around 900, the Thakuri dynasty succeeded the Licchavi era and was eventually superseded by the Malla dynasty that ruled until the 18th century. In 1768, the Gorkha king, Prithvi Narayan Shah, captured Kathmandu. In 1814, Nepal fought the Anglo-Nepalese War with the British East India Company that ended with the 1816 Sugauli Treaty, in which Nepal gave up Sikkim and the southern Terai and the British retreated. After Nepali Gurkhas aided the British in quashing the Indian Sepoy Mutiny in 1857, most of the Terai territories were returned to Nepal.
The Shah dynasty was cut short in 1846 when Jung Bahadur Rana seized control of the country after assassinating several hundred princes and chieftans in Kathmandu's Kot Massacre. Ranas ruled as hereditary prime ministers until 1948 when the British colony of India achieved independence. India propped up King Tribhuvan as Nepal's new ruler in 1951 and sponsored the Nepali Congress Party. Tribhuvan's son, King Mahendra dissolved the democratic experiment and declared a "partyless" panchayat system would govern Nepal. His son, King Birendra inherited the throne in 1972 and continued the panchayat policy until 1989's "Jana Andolan" (People's Movement or Democracy Movement) forced the monarchy to accept constitutional reforms. In May 1991, Nepal's held its first election in nearly 50 years. The Nepali Congress Party and the Communist Party of Nepal received the most votes. No party has held power for more than two consecutive years since. Critics argue that the governmental reforms did not appreciably improve the political order because the new government was also characterised by extreme corruption bordering on kleptocracy.
In February 1996, one of the Maoist parties started their bid to replace the parliamentary system with a socialist republic through a Maoist revolutionary strategy known as People's war. This has since grown to a civil war and resulted in the deaths of 10,000 people.
According to official Nepal government accounts, on June 1, 2001, the Heir Apparent Crown Prince Dipendra went on a killing spree in the royal palace in a violent response to his parents' refusal to accept his choice for a wife. He apparently shot and killed his parents, King Birendra and Queen Aishwarya, as well as his brother, sister, two uncles and three aunts, before turning the gun on himself. His suicide attempt was not immediately successful, however, and although in a comatose state, he was proclaimed the king (in accordance with Nepalese tradition) in his hospital bed. He died three days later.
Following King Dipendra's death, his uncle (King Birendra's brother) King Gyanendra was proclaimed king on June 4. Shortly afterward, he declared martial law, and dissolved the government. Gyanendra deployed Nepal's military in the grinding civil war, the Nepalese People's War, with the Maoist insurgents. King Gyanendra took control once again on February 1, 2005.