Segunda Division team Huesca is the first team to confirm their promotion to the top-flight on Monday.
A 2-0 win away to Lugo was enough to seal a promotion to the first division. Alex Gallar was the first one who scored and put ahead his team just after six minutes at Estadio Anxo Carro.
The full-time whistle signalled a hugely successful first season in charge for coach Rubi.
The Aragonese side can now look forward to trips to Barcelona and Real Madrid in 2018/19 with Rayo Vallecano likely to join them in the other automatic promotion spot, before June's play-offs take place.