Spain players celebrate their victory
Juan Mata put the defending champion ahead six minutes into the match and Xabi Alonso doubled the advantage in the 23rd.
Spain, which had already qualified for the tournament in Poland and Ukraine, leads Group I with 21 points from seven matches.
The Czech Republic is second on 10 points and travels to Lithuania for their final qualifier on Tuesday.
Scotland, which is third two points behind the Czechs, has a chance to jump to second by winning at Liechtenstein on Saturday before playing Spain on Tuesday in the last game.
Short link: