Prime Minister Mariano Rajoy welcomed the news, but critics said that while the economy is getting back on track and unemployment is dropping, there are still more people out of work than before the crisis and inequalities have risen.
According to the National Institute for Statistics (INE), the economy grew 0.9 percent from April to June this year compared to the previous quarter.
In his pre-summer vacation press conference, Rajoy said the latest figures showed Spain had “recovered the wealth we had before the crisis.”
He was referring to an index measuring GDP in real terms — which compensates for inflation and other seasonal variants — that reached 104.83 in the second quarter of 2017.
For the first time, this stands higher than the 104.36 measured from April to June 2008 — the last quarter before an economic crisis started biting into Spain's growth.
But the INE has stressed that these figures are still provisional, as is customary for the statistics agency which first gives a GDP estimate and later confirms or changes it in a final conclusion.
This will be published on August 24th. Spain has slowly been getting over the crisis, sparked in part when a property bubble burst in 2008.
The crisis saw countless people lose their jobs and forced the European Union into a 41.3-billion-euro rescue of Spain's banking sector in 2012.
When Rajoy came to power in 2011, he implemented widespread spending cuts, prompting huge protests as inequalities rose.
Now, Spain's economy is rising well above the eurozone average, and unemployment has dropped from a crisis high of close to 27 percent.
But at 17.2 percent, it is still the second highest rate in the European Union, and many of the jobs created are short-term and badly paid.
Official figures show there are still 1.5 million more people out of work than just before the crisis.
Economy Minister Luis de Guindos said last weekend that Spain may do better this year than in 2016 and 2015, when the economy grew 3.2 percent.
If this happens, Spain's GDP could reach around 1.15 trillion euros ($1.35 trillion) in 2017, against 1.11 trillion in 2008.