He tendered his resignation to President Ram Baran Yadav on Saturday, his office said.
Also read: India not blocking trade with Nepal: Envoy
The party decided to again field Koirala for the post and will register his candidacy on Saturday itself.
Chairman of the CPN-UML, K.P. Oli, has already registered his candidacy. Once Koirala also does so, there will be a straight fight for the post.