NBA champion Marc Gasol saved Spain on Friday as they beat Australia after a thrilling second overtime period and will play Argentina in the Basketball World Cup final.
An enthralling semi-final between Australia and Spain was 71-71 at the end of regulation time and the two sides could not be separated at the end of a nervy first overtime.
Finally, the 2006 world champions Spain jubilantly emerged in Beijing to reach Sunday's final after the Boomers appeared to run out of juice.
Sergio Llull hit two three-pointers in the second overtime for Spain to cap their comeback 95-88, having trailed for long periods during regulation time.
Gasol, the Toronto Raptors centre, finished with 33 points, six rebounds and four assists after stepping up when his country needed him most.
"We came back, we stuck together through tough times, that means a lot," said the 34-year-old, a three-time NBA All-Star.
The Spaniard played a key role in the Raptors' historic run to the NBA crown and knows that victory against Argentina on Sunday will cap the perfect season.
"It's been great, I have been very fortunate," he said.
"I knew that it would not be easy physically (going from the NBA Finals to the World Cup) but it's definitely worth it.
"Not because of the final but passing along those values to the team. It's our turn to pass on the legacy to the next generation (of the Spain team)."
Ricky Rubio was also pivotal once more for Spain with 19 points, 12 assists, seven rebounds and four steals.
Red-hot Patty Mills, one of the players of the competition, was unfortunate to be on the losing side, leading Australia with 34 points.
Coach Andrej Lemanis called it "a hell of a game of basketball and fun to be involved with".
"Tough to lose, no doubt, it comes down to a couple of plays here and there," he said.
"At the end of the day, we had chances to win the game, we had every opportunity to win the game."
- Super Scola -
Argentina are one win away from their first World Cup title since 1950 after they brushed aside France 80-66 in the other semi-final.
Cheered on by a group of fans decked out in their national colours, Argentina made a fast start against France, who had ousted the US in the previous round.
Argentina opened the game up with a 10-2 run that saw Luis Scola, the age-defying 39-year-old, dominate the court.
The South Americans led 39-32 at half-time and were never in serious danger of surrendering their advantage after that.
Scola, the grand old man of basketball, finished with 28 points, 13 rebounds and two assists. He was given a huge ovation when he stepped off the court near the end.
With an average height of 6'8" (203 cm), France are one of the tallest rosters at the 32-team World Cup.
Their height advantage was a weapon against the reigning two-time champions the United States in their thrilling quarter-final victory.
But it had little effect on Argentina, who were up 52-38 midway through the third quarter and on the way to a big win.
France will play Australia for bronze on Sunday.