Barcelona fought back from the brink of defeat to beat Granada 5-3 after extra time in an extraordinary Copa del Rey quarter-final at Estadio Nuevo Los Carmenes.
Ronald Koeman's side won at this ground 4-0 in LaLiga last month but were facing a battle when Kenedy scored against the run of play after an error by Samuel Umtiti, making just his fifth start of the season.
Roberto Soldado struck a second on the break early in the second half and Barca struggled to get back into the contest against an exemplary Granada defence and inspired goalkeeper Aaron Escandell.
However, Griezmann turned in Lionel Messi's cross from deep with two minutes of normal time left and the same combination set up Jordi Alba to head in an injury-time equaliser.
Griezmann's fine header put Barca ahead in extra time but Fede Vico struck back straight away from the penalty spot, only for Frenkie de Jong and Alba again to settle the encounter at last.
6 - Barcelona have made more errors leading to goals than any other LaLiga team this season in all competitions: Neto Murara , Marc-André ter Stegen , Clément Lenglet , Ronald Araujo , Lionel Messi y Samuel Umtiti . Risk. pic.twitter.com/MKMUUFjELi— OptaJose (@OptaJose) February 3, 2021
Aaron was forced into six saves in the first half as Barca dominated proceedings, with a double stop to deny Messi and Francisco Trincao the pick of them.
It was Barca's own slack play that gifted Granada the lead, as some loose passing in defence ended in Umtiti being dispossessed by Alberto Soro, who teed up Kenedy for a tap-in.
Granada delivered a sucker-punch in the first two minutes of the second half. Angel Montoro intercepted a Griezmann pass and launched a long ball forward to Soldado, who raced away from Umtiti and slotted past Marc-Andre ter Stegen.
Trincao, Ousmane Dembele and Messi all hit the woodwork and Griezmann was denied from an overhead kick by a brilliant Aaron save, but the France forward turned a Messi cross in off post and keeper to give his side a lifeline.
The same Messi pass and Griezmann run teed up Alba to net an unlikely header, but Luis Suarez almost snatched a win for Granada with seconds left, the substitute dragging a shot wide after racing through on goal.
Aaron could do nothing to deny Griezmann's emphatic second in extra time as he rose highest to head in Alba's cross, but Vico restored parity three minutes later from the spot after Carlos Neva won a soft penalty from Sergino Dest.
But De Jong denied Granada a second semi-final in succession, side-footing into the net after Aaron had parried Messi's shot in the 109th minute, and Alba blasted home a stunning volley from Griezmann's clever pass to make certain the contest was over.
What does it mean? Koeman's Barca prove they can fight
With a 10-point gap to league leaders Atletico Madrid and Paris Saint-Germain lying in wait in the Champions League last 16, the Copa looks like Barca's best chance of silverware, particularly with Atleti and Real Madrid out.
It looked as though Diego Martinez's well-drilled side would be their undoing, but they deserve huge praise for the way they kept the contest alive and responded again when the hosts pulled it back to 3-3.
Koeman had admitted his side were unlikely to win multiple trophies this term, but they have shown they are able and prepared to fight for whatever they can get.
Granada's designated Copa keeper looked every bit worthy of wrestling the number-one spot from Rui Silva.
Fourteen saves, three catches and two punches thwarted Barca until the dying minutes and he certainly did not deserve to concede five times.
Barca almost undone by Umtiti
Umtiti had enjoyed three wins from three in LaLiga following his comeback last month, but this was not a game he will wish to remember.
Having lost possession for the first Granada goal, he lost the flight of the ball to allow Soldado to score the second, and he was taken off for Martin Braithwaite midway through the second half.
Barca are back in LaLiga action at Real Betis on Sunday. A day earlier, Granada head to Levante, who reached the Copa semi-finals on Wednesday by beating Villarreal.