Fortune was on Spain's side on Sunday as the draw for the qualifying rounds of the 2020 European Championships at the Convention Centre Dublin paired them with Sweden, Romania, Norway, Malta and the Faroe Islands in Group F.
"Each group is difficult in its own right in a draw like this but we are happy," said coach Luis Enrique.
Having successfully avoided drawing Germany, who were for the first time in pot two, La Roja will only be disappointed that they were drawn in a group of six, rather than five, meaning that there will be no opportunity to contest friendly matches.
However, with World Cup quarter-finalists Sweden the highest ranked side in the group, Luis Enrique should have plenty of opportunity to experiment against minnows Malta and the Faroe Islands.
Gibraltar's quest for qualification starts with a visit from Mick McCarthy's Republic of Ireland in March.
A venue has not yet officially been announced but the GFA's preference is for the game to be contested on home soil.
They are joined in Group D by Georgia, Switzerland and Denmark.
The Republic of Ireland were originally placed in the 'group of death', alongside the Netherlands and Germany, but earned a reprieve with the group containing one too many host nations. Euro 2020 will, for the first time, be held across 12 host cities, once more with the participation of 24 nations. ROI's place was taken by Northern Ireland.
World Cup semi-finalists England, who were drawn in Group A, should progress without any issues having drawn Czech Republic, Bulgaria, Montenegro and Kosovo.
Coach Gareth Southgate called it a "great opportunity" for his young side.