Girona have earned promotion to La Liga for the first time following a scoreless draw with Real Zaragoza at the Estadi Municipal de Montilivi.
Pablo Machin's men knew that a point would be enough to clinch second place in the table behind already promoted Levante and they managed to achieve just that following a match in which neither side showed much attacking intent.
Sunday's results leave Girona three points clear of third-placed Getafe with one game remaining, but the Catalans hold the better head-to-head record having beaten their rivals in the race for promotion both home and away.
Girona narrowly missed out on promotion to the Spanish top flight last term, with Osasuna eventually proving to be too strong in the final of the play-offs.
Former Inter striker Samuele Longo has played a key role in their successful 2016-17 campaign, scoring 14 goals.