The EU and Italy have today called a truce in their bitter row over Rome's disputed 2019 budget, as the populist government agreed to put off signature reforms.
In a first, the European Commission had in October rejected Italy's big-spending budget, which promised a universal basic income and scrapped pension reform.
In today's deal, Italy agreed to back down on both of its landmark measures, and is now committed to not adding to its colossal €2 trillion debt load next year.
"Intensive negotiations over the last two weeks have resulted in a solution for 2019," EU Commission Vice President Valdis Dombrovskis told reporters in Brussels.
"Let's be clear: the solution is not ideal. But it avoids opening the excessive deficit procedure at this stage," he added, referring to a process that could result in major fines for a member country.
To find a compromise, Brussels offered to show flexibility in appraising the budget in light of "exceptional circumstances".
This included the modernisation of infrastructure after a tragic bridge collapse in Genoa last August.
Italian Prime Minister Giuseppe Conte told senators in Rome that the deal in no way reneged on his government's promises but instead offered a solution "that is good for Italians and also satisfactory for Europe".
Deputy Prime Minister Luigi Di Maio, the head of the populist Five Star Movement, hailed a success "without ever betraying the Italian people".
The EU and Italy negotiated intensely in recent days with both sides worried that a protracted feud would alarm the markets and ignite a debt crisis in the euro zone's third biggest economy.
The situation grew politically thornier for Brussels after France last week announced a new wave of spending for 2019 that will also break EU rules on public spending.
This came in response to "yellow vest" protests that forced French President Emmanuel Macron to turn away from EU-backed belt-tightening ahead of European elections next year.
Italy and others complain that powerful France receives special treatment on its budget plans by the EU Commission.
Without the compromise, Italy would have ultimately faced a fine of up to 0.2% of the nation's GDP after a long and rancorous process with its euro zone partners.
The talks centred on the so-called structural deficit, which includes all public spending minus debt payments.
Italy's first budget was set to blow through commitments made by the previous government, with a deterioration to a 0.8% of GDP structural deficit, which would require Rome raising even more debt.
The deal today said this would now be balanced, with the overall deficit at 2.04% of GDP.
Italy's public debt is a big problem and now sits at a huge €2.3 trillion, or 131% of Italy's GDP - way above the 60% EU ceiling.
European sources believe that the cost of servicing Italy's debt quickly turned Rome away from confrontation with Brussels that many predicted would drag on until next summer.
The deal will now be debated by euro zone ministers in the coming weeks, with fiscal hardliners already critical of the compromise.
"We regret that the European Commission is failing its budgetary tasks just when we are engaging in reforms for the euro zone that require consistency and trust," an EU diplomat said.