Vasek Pospisil, right, and Denis Shapovalov came back from one set down to defeat Kevin Krawietz and Tim Puetz of Germany ©Getty Images

Canada secured the last semi-finals spot at the Davis Cup Finals after a dramatic doubles win over Germany.

Vasek Pospisil and Denis Shapovalov came back from one set down to defeat Kevin Krawietz and Tim Puetz of Germany 2-6, 6-3, 6-3, marking Canada’s first semi-finals appearance since 2019.

Earlier, Shapovalov went down 6-3, 4-6, 7-6 against Jan-Lennard Struff in the singles match before Felix Auger-Aliassime levelled the score with a 7-6, 6-4 win over Oscar Otte.

"Huge credit to Felix for bringing the team on the board," Shapovalov said after the game.

"He saved us out there today.

"It’s always a pleasure to play with Vasek.

"It’s always awesome to share the court with him and we bring some firepower."

Pospisil was impressive in the deciding doubles fixture.

The 32-year-old, who was broken twice in the opening set, played a crucial backhand return to move the Canadians 3-1 up.

From then on, the momentum was in Pospisil and Shapovalov’s favour.

In the final set, Shapovalov upped the ante to secure a key breakthrough.

He broke Puetz’s serve with a great return to seal the win.

"We got a bit of momentum and having the crowd support helps us to carry the momentum through to the end," Pospisil said.

"It’s a challenge to be sharp out there, but given the circumstances I thought we played really well."