Mr Prachanda, 62, announced his resignation while addressing the nation in a live telecast. It was his second stint as the Prime Minister.
He was elected as the 39th prime minister of Nepal after forging alliance with the Nepali Congress on August 3, 2016. Prachanda, the Chairman of CPN (Maoist Centre), had reached an understanding with Nepali Congress president Sher Bahadur Deuba that he would step down as Prime Minister and hand over the leadership to him after nine months. The pact was to run the government on a rotational basis until elections to the parliament are held in February 2018.
Mr Prachanda was to hold office until local polls are held whereas the remaining two elections - provincial and central - were to be conducted under Mr Deuba.
Local-level elections could not be held after 1997 largely as a result of the decade-long insurgency that claimed more than 16,000 lives in Nepal.
The elections were supposed to be held every five years but due to the political instability, they were halted since May 1997.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.