Skopje - Spain moved closer to a spot in next year's European Championship by beating Macedonia 1-0 after an own goal by the Macedonian keeper on Tuesday.
Juan Mata's cross from the right side sailed into the far corner and the ball rebounded off the post and the face of goalkeeper Tome Pacovski before crossing the line, keeping Spain comfortably ahead in qualifying Group C.
Slovakia remained in second place after a 0-0 away draw against third-place Ukraine.
Spain reached 21 points with two matches to play, while Slovakia has 19 points and Ukraine 16.
A home victory against Luxembourg on October 9 will guarantee Spain's place at next year's championship in France.
Spain's final match will be away to Ukraine on October 12.