Deportivo La Coruna have been promoted back to La Liga following a 2-1 win over Huesca.
Despite going behind at the Riazor, goals from Riki and Xisco Jimenez were enough to give Jose Luis Oltra's team the victory.
Deportivo, who won the Primera Division title in 2000, were relegated from Spain's top flight last season.
They conclude their campaign next weekend with a trip to Villarreal II.