Athens, Greece (CNN) -- Greek Prime Minister George Papandreou will step down as his government's leader, the country's president announced Sunday night -- agreeing to do so on the condition that the controversial 130 billion euro bailout deal is approved.
The announcement follows a meeting on Sunday in which Papandreou and Antonis Samaras -- the leader of the New Democracy party, Greece's leading opposition party -- agreed to form a new government.
The two will meet again Monday to discuss who will become the nation's next prime minister as well as who will serve in the new government, according to the statement from President Karolos Papoulias.
No more details or a timeline of future events were disclosed, beyond that new national elections will be held sometime after the bailout is implemented. Earlier Sunday, Samaras told reporters that once Papandreou resigns everything will "take its course" and "everything else is negotiable."
The move appears to close one chapter in Greece's tumultuous political and economic saga, as Papandreou had become a lightning rod for critics for his leadership of the south European nation as it tackles a prolonged financial crisis.
It also paves the way for passage of the agreement that he negotiated October 26 with European leaders. That deal wipes out 100 billion euros in Greek debt (half of what it owes) and a promise of 30 billion euros to help the public sector pare its debts, making the whole package worth a total of 130 billion euros ($178 billion).
But Greece's turmoil is far from over. The bailout -- the second that it has received from the European Union and International Monetary Fund -- would be accompanied by additional austerity measures such as slashing government jobs, privatizing some businesses and reducing pensions. It also comes at a time when Greece's economy, and to some extent the global economy, is still staggering.
Though Greece ranks 32nd in terms of gross domestic product, experts say that it wields a disproportionate influence internationally. Economists fret that a Greek default on its debt could drag down larger European economies, in particular those of Italy and Spain, as well as struggling Portugal and Ireland.
That is why world markets were on edge Sunday, awaiting some resolution of the domestic political battle. European leaders have said they want Greece to be one of the 17 nations that use the euro, though they've also said saving the common currency is more important.
Eurozone finance ministers are scheduled to meet Monday in Brussels.
Within Greece, the bailout's passage would be a significant victory for Papandreou. He has insisted repeatedly in recent weeks that it needs to be approved -- signaling that he'd be willing to exit as prime minister, a job he has held since 2009, as long as that happens.
Earlier Sunday, Greece's president met ahead of a Cabinet meeting with all party leaders -- including Papandreou, who heads the socialist PASOK party, and Samaras.
"I can sense the agony of the Greek people," Samaras said before the meeting. "Everybody has to act responsibly now and send a message of stability abroad to the people of Europe and the people of our country too."
"I agree completely with your words," Papoulias said. "We should give an end to this sense of insecurity and instability. We should give answers to the questions: where are we going and what are we doing? We are all responsible for that."
Finance Minister Evangelos Venizelos is likely to remain in his post as finance minister in a new government, sources told Greek television. Candidates for the prime minister's job include Petros Moliviatis and Loukas Papaimos, according to Greek television.
The new government will have a life of four months, according to Greek television, citing sources, and elections will be held in early spring.
On Monday -- in addition to a meeting between Papandreou and Samaras -- the Greek president will hold another meeting open to heads of all Greece's political parties.
CNN's Diana Magnay, Jim Boulden and Andrew Carey in Athens and Matthew Chance and Hada Messia in Rome contributed to this report.