A last-gasp try from Lucas Tranquez handed South American minnows Brazil an upset 24-23 victory over Canada in the Americas Rugby Championship.
Tranquez touched down in the final seconds before Moises Duque added the crucial conversion as the Brazilians completed their 2017 campaign with their second win of the season in the Six-Nations style tournament.
The dramatic finish came after Canada looked to be heading to a hard-earned victory after recovering from 17-14 down at half-time to lead 23-17.
Brazil had opened the scoring early on when fullback Daniel Sancery punished some loose Canadian tackling to dot down for the first score, converted by Duque for 7-0.
Canada however were soon level when some superb footwork from Nick Blevins, wrongfooting the Brazilian defence with a clever side-step, saw the centre go over for the score.
Duque drilled a 16th-minute penalty to put Brazil ahead 10-7 two minutes later, but in the 27th minute Canada were back in front after an opportunistic try from scrum-half Gordie McRorie.
There appeared to be little on from a line-out but the Canadian No.9 saw a gap and darted through to race over for the try which he then converted to make it 14-10.
However the influential Duque then matched McRorie's efforts three minutes from half-time, rounding off a slick passing move by the Brazilians to score and convert his own try, leaving the hosts 17-14 ahead.
Canada looked to have taken a grip on the game in the second half, McRorie punishing indiscipline with a 48th-minute penalty to level the score.
A further penalty and a drop goal put Canada six points ahead but a sin-binning for lock Matt Beukeboom gave Brazil hope with just under ten minutes to go.
Brazil second row Diego Lopez then followed Beukeboom into the bin but the hosts were still able to summon one last attack which ended with Tranquez's winning try.
Argentina and the United States play on Saturday to determine the winner of the 2017 championship.