Paul Aguilar struck with two minutes remaining in extra time as Mexico overcame the United States 3-2 to book a spot at the 2017 Confederations Cup.
Penalties looked likely after Bobby Wood and Oribe Peralta exchanged goals in either half of extra time in California on Saturday.
But Aguilar popped up with a memorable volley from an acute angle in the 118th minute at Rose Bowl as Mexico claimed the winner-takes-all CONCACAF Cup playoff and a trip to Russia two years from now.
Mexico was a class above throughout the fixture - a contest between the winners of the two Gold Cups prior to the Confederations Cup - and the 2015 Gold Cup champion took the lead in the 10th minute.
After a frenetic start to proceedings, Javier Hernandez combined with Peralta and scuffed his shot past USA goalkeeper Guzan for his 42nd international goal.
The USA found its feet and leveled the match within five minutes.
A teasing free kick across the six-yard box from Michael Bradley picked out defender Geoff Cameron, who headed powerfully past Moises Munoz.
Bradley was at the center of all the USA's plays throughout the first half, and the Toronto FC star came close on two occasions to putting the home side ahead.
The 28-year-old made a streaking run through midfield in the 32nd minute, drifting past two defenders only to fluff his shot wide of the post, before forcing Munoz into a scrambling low save on the stroke of halftime.
It was more of the same early in the second half as Mexico settled quickest.
Guzan was quick off his line to deny Raul Jimenez from close range two minutes after the break.
Mexico continued to press USA back into its own third and went within a whisker of taking the lead just shy of the hour-mark, when Hernandez failed to make clean contact with the ball as he attempted a back heel inside the six-yard box.
The USA, though, held firm as the match headed into extra time after Mexico's cries for hand ball on Matt Besler and a penalty were ignored during the closing stages of regulation.
Visibly tired, the USA was caught napping early in the additional period, though Guzan was on hand to deny Peralta in the 93rd minute.
Peralta was not to be denied three minutes later, however, controlling the ball inside the box and firing low past Guzan.
But just as the USA appeared to be out on its feet, second-half substitute Wood guided the ball through the legs of the advancing Munoz in the 108th minute.
In another twist, however, Aguilar produced a world-class strike inside the final two minutes to send Mexico to Russia.