Australia now know their Davis Cup semi-final rivals, after two-times champions Croatia reached the tournament's last four for the sixth time with a 2-0 win over hosts Spain.
Marin Cilic rallied to clinch the winning point for Croatia with a 5-7 6-3 7-6 (7-5) victory over Pablo Carreno Busta.
Borna Coric had earlier given his side the lead with a 6-4 7-6 (7-4) win over Roberto Bautista Agut.
With Carreno Busta up 5-4 in the third set tiebreaker and two points away from forcing a deciding doubles rubber, Cilic fired down an ace to draw level and then coolly went on to seal the win in three hours and 13 minutes.
Croatia, who finished runner-up to Russia in last year's Davis Cup final, will play Australia in semi-final action on Friday in Malaga (2am Saturday AEDT).
Battling displays from Jordan Thompson and Alex de Minaur had on Tuesday earned Australia a 2-0 win over the Netherlands to secure their spot in the last four.
A misfiring Cilic managed to hold serve in the opening game of the match despite four double faults and that inaccuracy at the service line was a sign of things to come for the Croatian, who mixed 20 aces with 15 double faults.
Cilic started to find his groove in the second set where he managed to consolidate a break for a 5-2 lead and then went on to force a decider.
After the two players combined for four service breaks across a six-game span of the third set, Carreno Busta held for a 5-4 lead but Cilic also steadied the ship and managed to push it to a tiebreaker where he quickly fell behind 4-1.
In the day's first match, Coric was solid from the service line as he fired down 12 aces and turned aside the only break point he faced en route to securing victory in just under two hours.