President of Nepal is the head of state. The position of President was created in May 2008 when Nepal was declared a republic nation.
In 2006, rule of king was abolished. The Interim Constitution was drafted and adopted in January 2007. The election of Constituent Assembly was held in 2008 and 601 CA members formed the Constituent Assembly.
To fill the gap between the suspension of the monarchy and election of new president of Nepal, Girija Prasad Koirala, then Prime Minister of Nepal, acted as Head of State.
In the first meeting of Constitution Assembly, voting was done against monarchy and Nepal was established as a republican country. The first president of Nepal was was also elected by the constitution assemble members.