Eurozone leaders have reached
agreement over a third Greek bailout after marathon talks in Brussels.
EU chairman Donald Tusk said leaders agreed "in principle" on negotiations for the bailout, "which in other words means continued support for Greece".
Prime Minister Alexis Tsipras said that after a "tough battle", Greece had secured a "growth package" of €35bn (£25bn), and won debt restructuring.
Greece will now have to pass reforms demanded by the eurozone by Wednesday.
Follow our live updates
"There will not be a 'Grexit'," said European Commission head Jean-Claude Juncker, referring to the widespread fear that if there had been no deal, Greece would have had to leave the eurozone.
Mr Tsipras also said he had the "belief and the hope that... the possibility of 'Grexit' is in the past".
"The deal is difficult but we averted the pursuit to move state assets abroad," he said. "We averted the plan for a financial strangulation and for the collapse of the banking system."