Spain cut its public deficit in 2016 to 4.54 percent of its economic output, the government said Thursday, narrowly beating the revised target it agreed with the EU.
"We have fulfilled the objective set by European institutions for 2016," Budget Minister Cristobal Montoro told a news conference.
The government had agreed with Brussels to bring the public deficit down to 4.6 percent of gross domestic product (GDP) in 2016 from 5.1 percent in 2015.
Excluding financial aid to help Spain's ailing banking sector, the public deficit was 4.33 percent, the minister said.
Spain had originally promised Brussels to bring its deficit below an EU limit of 3.0 percent.
But after it became apparent the country would be unable to meet this target the EU agreed to raise the figure in August.
Spain was given two extra years to bring its deficit to below the 3.0 percent limit. It agreed to product a deficit of 3.1 percent in 2017 and 2.2 percent in 2018.
While Montoro acknowledged Spain's "previous goal was different", he stressed his conservative government has steadily reduced the deficit since coming to power in 2011.
Spanish public debt began to soar after a decade-long property boom finally turned to bust in 2008, throwing millions of people out of work and prompting a drop in tax revenues.
The government has tried to slash the deficit by pushing through unpopular cuts to social spending and tax hikes.
Prime Minister Mariano Rajoy's government, which was returned to power late last year without a majority in parliament, is due to present its draft budget for 2017 on Friday.
It is under pressure from the left-wing opposition to ease its austerity measures while Brussels is piling on the pressure for Madrid to respect its deficit targets.