Canada will face Australia in the Davis Cup final on Sunday after beating Italy in the semi-finals.
Italy's Lorenzo Sonego defeated Denis Shapovalov 7-6 (7-4) 6-7 (5-7) 6-4 in an opening singles rubber lasting three hours and 15 minutes in Malaga.
World number six Felix Auger-Aliassime levelled the tie for Canada with a 6-3 6-4 victory over Lorenzo Musetti.
He and Vasek Pospisil then won the deciding doubles 7-6 (7-2) 7-5 against Matteo Berrettini and Fabio Fognini.
It is the second time Canada have reached the Davis Cup final, having first done so in 2019 when they lost to Rafael Nadal's Spain.
Australia - the 28-time champions of the tournament - reached their first Davis Cup final since 2003 on Friday with victory over Croatia.Live scores, results and order of playAlerts: Get tennis news sent to your phone
Fancy a movie tonight? Check out the stellar selection of films on BBC iPlayerMessi as you've never seen him before: A wide-reaching documentary about the legendary footballer