Leaders agree eurozone debt deal after late-night talks
European leaders have reached a "three-pronged" agreement described as vital to solve the region's huge debt crisis.
They said banks holding Greek debt accepted a 50% loss, the eurozone bailout fund will be boosted and banks will have to raise more capital.
Shares on European markets rose sharply on news of the deal.
The agreement is aimed at preventing the crisis spreading to larger eurozone economies like Italy, but the leaders said work still needed to be done.
After marathon talks in Brussels, they agreed a mechanism to boost the eurozone's main bailout fund to about 1tn euros (£880bn; $1.4tn).
Banks must also raise more capital to protect them against losses resulting from any future government defaults.
BBC business editor Robert Peston says it is perfectly clear that EU leaders have bought some time, and for a few weeks and maybe longer the markets will give them the benefit of the doubt.
The ambition is not in doubt but many crucial details are missing and the test of this deal lies in the weeks ahead.
Greece has been given a chance to escape its debt trap but long years of austerity lie ahead and its economy is still shrinking.
The 1tn-euro bailout fund will be lower than some people think necessary to protect big economies like Italy and Spain. The test will be whether it lowers their borrowing costs.
With this deal some time has been bought. Some of the crucial details of how, for instance, the rescue fund will work, will not be hammered out until November.
Hanging over all of this is the question of growth. All of these calculations, commitments and expressions of determination can be dismissed if Europe's weakest countries do not return to growth.
The framework for the new fund is to be put in place in November.
Meanwhile EU leaders welcomed Italian Prime Minister Silvio Berlusconi's pledge to balance his country's budgets and implement reforms to bring down its 1.9tn-euro debt.
Correspondents say Mr Berlusconi had been under huge pressure to prove he was serious about austerity measures.'Ambitious response'
The announcement of the deal helped lift the euro, with investors reacting positively to the outlook for the region's growth and single currency.
"The eurozone has adopted a credible and ambitious response to the debt crisis," a visibly tired French President Nicolas Sarkozy said at a news conference early in the morning in the Belgian capital.
"Europe is closer to resolving its financial and economic crisis," said Jose Manuel Barroso, president of the European Commission, in a report later to the European Parliament.
"We are showing that we can unite in the most difficult of times."
How much is a trillion?
A million seconds is 11.57 days
A billion seconds is 31.7 years
A trillion seconds is 31,709 years
Fears about the state of the eurozone's finances and the threat of a break-up of the single European currency have been stalking markets for months.
Critics have accused policymakers of not doing enough to resolve the issues, contributing further to problems and fuelling uncertainty.
Leaders of the 17 eurozone nations had been in meetings since Wednesday trying to hammer out a deal to help Greece put its national finances in order and underpin other European economies such as Italy.
Analysis: Will the plan work?
Commentators predict the effect of the three-pronged deal.
The Independent's Hamish McRae says so far markets haven't reacted like "headless chickens". He expects only a modest recession in Europe.
Allen Mattich at the Wall Street Journal calls it a "eurofudge" and predicts the plan will be a failure. He sees the imbalances between the eurozone countries as so large that the euro will inevitably fail.
In the Financial Times Sir John Major agrees. He says he kept Britain out of the common currency because of the flaws in the euro - flaws the bailout doesn't get rid of.
Speaking after the deal was agreed, Mr Sarkozy said that "the complexity of the files, the necessity to get everybody to agree, means that we have been negotiating for long hours".
He said he believed the result would be a relief for "the whole world", which had been expecting a strong decision from the summit.
Because banks have agreed to shoulder losses on Greek bonds, the country's burden has been reduced, cutting its debt down to 120% of its gross domestic product by 2020.'Marathon not sprint'
Greek Prime Minister George Papandreou hailed the deal, saying: "We can claim that a new day has come for Greece, and not only for Greece but also for Europe."
The eurozone leaders also said the firepower of the main euro bailout fund - known as the European Financial Stability Facility (EFSF) - would be boosted from the current 440bn euros to about 1tn euros.
- Private banks holding Greek debt accept a 50% loss
- European Financial Stability Facility (EFSF) to be boosted to 1tn euros ($1.4tn:£880bn)
- Banks told to recapitalise by 106bn euros
Bank recapitalisation - the third key element of the package - was agreed earlier.
The banks would now be required to raise about 106bn euros in new capital by June 2012, and governments may have to step in despite the unpopularity of further bank bail-outs.
It is hoped that this would help shield them against losses resulting from any government defaults and protect larger economies - like Italy and Spain - from the market turmoil.Continue reading the main story
"The package that we have agreed tonight, a comprehensive package, confirms that Europe will do what it takes to safeguard financial stability," said Mr Barroso, announcing the deal.
"I've said it before and I'll say it again, this is a marathon not a sprint."
German Chancellor Angela Merkel, who was a key negotiator in thrashing out the deal, said: "I think we were able to meet expectations and we have done what needed doing" for the euro.
IMF chief Christine Lagarde, who was also at the Brussels summit, said she was "encouraged by the substantial progress made on a number of fronts".