Rafael Nadal hauled Spain to a 2-1 victory over Great Britain in the Davis Cup semi-finals in Madrid.
First, the Spanish talisman beat Dan Evans to force a decider, and then he starred alongside Feliciano Lopez as the pair beat Jamie Murray and Neil Skupski in a close doubles rubber.
Murray and Skupski performed brilliantly, forcing two deciding sets, but on the shoulders of Nadal's serve the Spanish duo took both, latterly four saving set points in a 7-6 (3) 7-6 (8) win.
It was hard on Leon Smith's side, who had defied the absence of Andy Murray to beat Germany on Friday, but in the end they were unable to force a way past the hall-of-fame matador on the other side of the net.
Nadal has won this competition before - four times in fact - but his desire for a fifth was clear throughout as the 33-year-old, who will end 2019 as the world's number one singles player, carried Spain into a Sunday showdown with Canada.
"This competition is dramatic - with this new format even more," said Nadal. "I think we played a good match, and in the important moments (Lopez) did everything well.
"We are super, super happy, an amazing evening for all of us."
Lopez, who stood tall alongside his more decorated partner, added: "There was a lot of drama today on the court.
"It was a very special moment for us, a very unique opportunity, and we are very pleased that we somehow managed to play all those points in a very good way.
"We are really, really happy, and I think we have a great opportunity to hold this trophy tomorrow."
Canada will be playing in the final of the Davis Cup for the very first time after they came through a final-set doubles tie-break to beat Russia 2-1.
Danis Shapovalov and Vasek Pospisil have been the only two players to represent Canada in a week which has seen them beat Novak Djokovic and Serbia, and much may not depend on their powers of recovery against the mighty Spain.
Rafael Nadal defeated Dan Evans to draw Spain level with Great Britain in their Davis Cup quarter-final in Madrid.
Kyle Edmund gave Leon Smith's team the perfect start by beating Feliciano Lopez - a very late substitute for Pablo Carreno Busta - 6-3 7-6 (3) but Evans was unable to pull off a miracle as he went down 6-4 6-0 against the world number one.
Nadal has not lost a Davis Cup singles match since his debut in 2004, winning 26 in a row before this one, so it was clear what a monumental task this was.
For nine games, Evans played about as well as he can, sticking with Nadal from the back of the court, serving well and coming forward intelligently.
But, once Nadal broke to win the first set, it was one-way traffic, setting up a deciding doubles rubber.
This time it was no surprise to see Andy Murray left on the bench after the performances of Edmund and Dan Evans in steering Britain to victory over Germany on Friday.
Edmund had expected to face Carreno Busta only for Spain to make a switch just five minutes before the start when he was ruled out with a thigh injury.
The timing certainly raised eyebrows given rumours were circulating about the fitness of Carreno Busta on Friday evening but Edmund, unfazed, powered to a 6-3 7-6 (3) victory to put Leon Smith's side within one rubber of a final against Canada.
Edmund said afterwards: "Busta actually came to warm up, (he was) on the bike (for) two minutes, he left. I said straightaway, 'Something is a bit weird there'. Then straightaway the guy came in.
"I think they knew what was going on but they just sort of went to the rules, they could do that. And yes, as soon as I found out, there's no point trying to argue it, Feli is the guy I was playing.
"And I was good within myself, how I was feeling. I was just enjoying going out to the semi-finals of a Davis Cup against Spain. I knew it was going to be loud out there. And it almost, in a way, it didn't matter who I was playing, I was just concentrating on being me first and putting myself out there.
"And I dealt with it really well, I thought."
Appeals by Murray and the British team and a through-the-night effort from the Lawn Tennis Association brought an extra 800 fans to Madrid for the clash.
The LTA invested more than £60,000 of the considerable prize money it will receive in purchasing tickets and then offering them free to any British supporters who could get to the Spanish capital.
The visiting fans were, of course, still heavily outnumbered in the 12,500-seat stadium - a big contrast from the small arenas in which Britain had played their first three matches.
If Spain had hoped the late change might disrupt the exceptional rhythm Edmund has been in all week, they were quickly disabused of that notion.
The Yorkshireman began the match with three aces and won eight of the first nine points to claim an immediate break of serve.
Lopez, who had not played a Davis Cup singles match since 2016, freed himself up as the first set went on, with his big serve keeping Edmund at arm's length, but did not force a break point.
The British number three was again in remarkable form for a player who only ended an eight-match losing run a few weeks ago, serving strongly and powering away winners.
Edmund is known for his destructive forehand but his backhand has been the revelation of this tournament and he used it very well again here.
The Lopez serve and the fervent atmosphere were ramping up the pressure on Edmund, though, and a forehand powered just wide gave the Spaniard two set points at 4-5 in the second set.
Edmund kept his nerve superbly, though, sending down big serves to save them both, and was much the better player in the tie-break.