Greece's capitulation to the demands of its euro creditors is a resounding victory for the common currency and takes the eurozone a step closer to common government. The terms accepted by Prime Minister Alexis Tsipras mean that changes have to be made to Greece's pensions, labour markets, taxation and much else at the direction of European institutions. In return, his bankrupt country will receive a third bailout when its existing debt to the European Central Bank comes due next Monday.
But this time the creditors are not simply trusting Greece to carry out the required improvements to its economic management. They have demanded its Government put assets worth 50 billion into a trust for their security. The likelihood these assets will have to be privatised is probably the hardest cross for Mr Tsipras and his left-wing Syriza Party to bear, but the creditors' demand for this level of security is a direct result of Mr Tsipras' odd and unpredictable dealings with them.
Two weeks ago he walked out of talks when a softer deal was on the table and called a sudden referendum. Greek voters gave him the result he said he wanted, a decisive "No" to the terms on offer. But armed with that endorsement, he went back to Brussels at the weekend with an offer of the same sort of reforms the eurozone ministers had been demanding. Perhaps he thought it was somehow less "humiliating" for Greece if they were offered rather than demanded.
Or perhaps when he returned to Brussels he realised he had over-played his hand. The rest of Europe and the world were treating the referendum result as a vote to leave the euro and some of the eurozone leaders had become openly prepared for the possibility. Perhaps it was only then that Mr Tsipras and his ministers realised the euro's bankers might let Greece go. Who knows?
The leaders have not wasted time wondering what motivated the Prime Minister's offer, or why he went to the trouble and expense of a referendum if he did not mean to act on it. They simply resolved not to trust him. The deal they have made with him has to be endorsed by Greece's Parliament this week if it is to take effect when the debt is due on Monday.
As German Chancellor Angela Merkel said, trust in Greece "needs to be rebuilt".
A majority of the Parliament looks likely to accept the terms of the bailout, though not a majority of Mr Tsipras' party. His own future looks doubtful. A new government might emerge after the vote tomorrow or new elections might be called.
But whatever happens, the eurozone looks stronger now. Greek voters have had a salutary experience. Six months ago they elected a Government that thought it could default on some debt, demand easier credit conditions and keep the euro.
It was a game of bluff and Greece has blinked. To keep the currency it will be governed as euro partners demand, like Ireland and Portugal before it. Each crisis in the common currency is working out well for European unity.