Granada have won promotion to the Spanish Primera Liga after victory over Elche in their playoff.
The first leg ended goalless, but striker Odion Jude Ighalo put the visitors in front after 28 minutes of the second.
The Nigerian dribbled around the goalkeeper and kept his composure to beat another defender before scoring.
However, Elche pulled a goal back through Xumetra ten minutes from time to set up a nerve-wracking finale.
Granada return to the top-flight for the first time in 35 years.