Nepal was under monarchy for several years and Kings used to rule in Nepal.But 2008 elections brought the monarchy to an end. For this to happen they conducted elections to form democratic government. The elections for forming a constituent assembly in Nepal were postponed twice and at last they were successfully held on 10th April, 2008.
After the elections the results were announced on May 8th 2008. The highest number of seats were won by the Communist Party of Nepal (Maoists). The members elected for constituent assembly were sworn in on 27th May, 2008 and the first constituent assembly was conducted on 28th May. In the first meeting of the constituent assembly, Nepal was declared as a Federal Democratic Republic country. With a count of 564 members in the assembly, 560 supported the proposal while only four members rejected it.
The national flag of Nepal was hosted on Narayanahiti palace on 29th May by removing the royal standard. The former king Gyanendra announced that he accepted the constitution on 2nd June. As Gyanendra was asked to leave the Narayanahiti palace , he requested the government to make some sort of arrangement for his residence and he was accepted to stay in Nagarjuna palace. Gyanendra left the Narayanahiti Palace on 11th June after declaring his acceptance and co-operation for the government. The first president Dr. Ram Baran Yadav from Nepali congress was elected on 21st July with a majority of 308 from a total of 590 votes. Later Subash Chandra Nembang of CPN-UML was elected unopposed as the Chairman of Constituent Assembly. The Chairman of the Communist Party of Nepal (Maoist) Pushpa Kamal Dahal Prachanda was elected as the first Prime Minister of Nepal with an enormous majority of 464 votes.