Updated

Spain is on the mend, Prime Minister Mariano Rajoy claimed Wednesday as he revealed that the government's budget deficit fell to less than 7 percent of GDP in 2012, from nearly 9 percent a year earlier.

The government has been trying to heal its public finances by slashing spending and raising tax. While that's come at a price for the economy, which is in another recession and hobbled by 26 percent unemployment, Rajoy noted it was finally bringing the deficit down.

"Spain's head is out of the water," Rajoy told Parliament in what was his first state-of-the-nation debate since taking office in December 2011.

Rajoy said the deficit reduction followed "a readjustment without precedent" in the economy. Official deficit figures are expected over the coming weeks.

Spain last year pledged to European authorities it would cut its deficit to 6.3 percent after the 2011 figure was found to have soared to 8.9 percent, nearly three-times the limit for nations using the euro currency.

In his pursuit of the promised deficit reductions, Rajoy broke every major election campaign promise, stirring much social opposition and triggering two general strikes over the past 14 months.

On Wednesday he admitted he had failed to live up to some promises but insisted he had done his duty.

Rajoy promised "a second generation of reforms" that appeared to signal a shift in strategy — away from growth-sapping austerity policies in favor of credit incentives and young employment.

The measures include a reduction — and in some cases elimination — of social security payments by companies that hire people under 30 years of age part time. He also announced a €45 billion ($60 billion) credit program for small and medium-sized companies to be funded publicly and privately.

Rajoy began his near two-hour speech recalling that the country had nearly 6 million people out of work. He promised there would "not be a single moment of relaxation" until they had turned the economy around.

About one million additional people have lost their jobs under Rajoy's administration and the unemployment rate for people under 25 is now at 55 percent.

He boasted, however, that despite the economic legacy left by the previous Socialist government his administration had changed the country's direction.

"Nobody would have bet on Spain a year ago but now nobody doubts that Spain will come out ahead," he said.

Spain's government borrowing costs soared to unsustainable highs above 7 percent last year, bringing the country close to having to seek a sovereign bailout loan like Greece, Ireland and Portugal. A promise by the European Central Bank in August to buy up bonds from countries that formally seek aid calmed investor concerns, however. Spain's borrowing rates have since eased to manageable levels.

Although several Spanish banks hit by the crisis were loaned €40 billion by the country's eurozone partners, the government insists it won't need any more external financial aid.

Opposition leaders where to address the chamber later Wednesday and Thursday and several were expected to reiterate calls for Rajoy to resign, arguing that the unemployment figures and corruption allegations left him without credibility.

The main corruption scandal affecting Rajoy erupted after the National Court said a former treasurer from Rajoy's Popular Party had amassed an unexplained €22 million in a Swiss bank account. Newspapers reports alleged that for years the treasurer made regular slush-fund payments to top party members, including Rajoy.

Rajoy and his party have denied the allegations but have failed to explain how the former treasurer amassed the money.

On Wednesday, Rajoy complained that the allegations of widespread corruption across the political system were unjust and damaging Spain's image. He called for a pan-party pact to combat the problem. He proposed audits for all political parties, labor unions and publicly financed companies as well as high-ranking officials and possibly deputies and senators.