Cadiz are returning to the LaLiga after 15 years outside the top-flight.
They did not win on Saturday which could have confirmed promotion but did come up on Sunday after Zaragoza lost 4-2 against Oviedo.
Cadiz are on 69 points, top of the Segunda. Huesca are second on 64 and Zaragoza third on 62 with two matches left to play, so Victor Fernandez's side can't fall out of the top two, who come up automatically.
Last time Cadiz were in the top flight it was under Victor Esparrago, back in 2005. They came straight down again but were loved for their fun fan base.