Spain will take on last year’s runners-up Croatia in the Davis Cup quarter-finals in November.
The Netherlands and the United States, who both beat Great Britain in Group D of qualifying, face Australia and Italy in the last eight respectively.
Germany will play Canada in the other quarter-final match.