Elche will return to LaLiga for the 2020-2021 season after beating Girona 1-0 with a stoppage-time winner in the second leg of their promotion play-off final.
With Thursday's first leg in Elche finishing 0-0, the return clash in Catalonia also appeared set to finish without a goal in the regulation 90 minutes.
But Pere Milla headed in the decisive goal in the sixth minute of second-half stoppage time, as Elche made the most of their numerical advantage following the dismissal of Cristhian Stuani, who was shown a red card after a VAR review deemed he stamped on an opponent.
Victory sees Elche return to LaLiga after five years away.
They were relegated from LaLiga in 2014-2015 despite finishing 13th, as Elche became the first club in the division's history to be demoted due to their financial difficulties.
Since then, It has dropped as far as the third tier, but Elche now join champions Huesca and second-placed Cadiz in earning promotion to Spain's top tier.