Spain's plea for a banking bailout of up to £81 billion is set to lift markets on Monday despite its leader's grim warnings of more pain ahead.
Spanish prime minister Mariano Rajoy admitted that its banks needed a cash injection and warned of another "bad" year to come, with the country expected to remain in recession and unemployment set to worsen.
Although the situation in the eurozone's fourth biggest economy remains bleak, there are hopes that the eventual injection of up to 100 billion euro (£81 billion) for its creaking banks will help to avoid the meltdown of the eurozone.
Spain's borrowing costs, which have risen to unsustainable levels in recent weeks, are expected to fall back on Monday, while world markets are set to regain some of their recent losses.
Markets have suffered hefty falls in recent weeks amid fears Greece will reject austerity and crash out of the euro and that Spain would fall into difficulty and prove too big to bail out. They have already made up some of their lost ground last week amid speculation of a deal for Spain.
A final figure on the size of the bailout will only be available later this month following the completion of two audits of the financial system.
The cash is expected to come from the eurozone rescue fund, with the International Monetary Fund overseeing the payments but not putting up any money.
The terms of the deal Spain is set to receive is likely to reassure markets because it has none of the strings attached to previous bailouts of Greece, Portugal or Ireland, when tough austerity measures were demanded.
Spain's financial problems are not due to Greek-style government overspending. Instead, its banks got caught up in the collapse of a real estate bubble in 2008 that then got worse over the next four years.
There are fears the problem will get worse as more jobless people are not able to pay their mortgages. It has already nationalised its fourth biggest lender Bankia, and four other banks serving the domestic market are considered prime candidates for bailouts.