New Zealand held off a battered and bruised Scotland to earn a hard-fought 22-17 victory at Murrayfield on Saturday.
Codie Taylor and Damian McKenzie took advantage of a series of injuries suffered by an already depleted Scotland team to force two tries in a five-minute spell early in the second half in Edinburgh.
The hosts valiantly fought back to score through Jonny Gray, as the All Blacks were twice reduced to 14 men in the second half, with Sam Cane and Wyatt Crockett both sent to the sin bin.
New Zealand still managed conjure up a brilliant third try, scored in the 67th minute by Beauden Barrett, who converted his own score.
Scotland were not finished, though - Stuart Hogg's perfectly weighted kick releasing Tommy Seymour to break and set up Huw Jones for a 78th-minute score that Russell converted.
And Hogg even had one last chance to draw or snatch the win right at the death, Barrett tackling him into touch with the final play of the game, as Scotland's wait for a first Test victory over the southern hemisphere heavyweights continues.
Steve Hansen's powerhouse team, who defeated France last time out, now turn their attention to a Test against Wales in Cardiff next weekend, when Scotland play host to the Wallabies.
Despite being without prop WP Nel and back row Ryan Wilson, it was the hosts who made the faster start against a strong All Blacks XV.
Scotland were rewarded for their early pressure in the sixth minute when Waisake Naholo went in off his feet at the breakdown to give away a penalty that Finn Russell kicked.
Scotland lost flanker Hamish Watson to a suspected back injury in the 28th minute, to be replaced by debutant Luke Hamilton.
Gregor Townsend's team continued to make the visitors work hard but the All Blacks managed to go in level at the break, as John Barclay was penalised for not rolling away after a Rieko Ioane breakaway, Barrett sending over the penalty to make it 3-3 at half-time.
New Zealand clicked into gear early in the second half, Ioane setting up Taylor to score the first try of the match after the same pair had led a breakaway that left Alex Dunbar down hurt.
Barrett narrowly missed the conversion attempt but Scotland suffered a further blow when Watson's replacement Hamilton was taken off on a stretcher with a potentially serious knee injury.
The All Blacks took advantage of the further disruption to extend their lead. A line-out and aggressive maul created space for Sonny Bill Williams to poke a clever grubber kick through the Scotland defence, and McKenzie gathered the ball to dot down.
This time Barrett did add the extras but Scotland refused to give up. A period of heavy pressure on the New Zealand try line led to successive penalties and saw Cane shown a yellow card, Gray burrowing over from close range soon after.
Russell made no mistake with the conversion to close the gap to five points with 18 minutes remaining.
Their hard work was undone when Peter Horne took his eye off Williams during a swift attack, the inside centre brilliantly offloading to McKenzie, who in turn played Barrett into space to score.
Crockett followed Cane into the bin soon after that and Scotland pounced through Jones' thrilling try, but Hogg narrowly failed to snatch a try that could have earned a memorable victory right at the death.
|Copa Libertadores Review: Zarate leads Boca, River draw|
|Mourinho: Dalot can play at Man United for more than 10 years|
|Johnson hoping to erase East Lake demons|
|´No question´ Fitzgerald faces Bears, says Cardinals´ Wilks|
|Rodgers says roughing the passer penalties are ´going the wrong direction´|
|Ravens fined $200,000 for violating communication policy|
|LeBron James set to star in ´Space Jam´ sequel|
|Ronaldo red card ´absurd´, says Pjanic|
|Kovac hails ´special´ Sanches after Bayern goal|
|Marcelino: Tearful Ronaldo said he did nothing wrong|
|Fernandinho takes blame for Man City´s Lyon loss|
|Lovren denies any wrongdoing after perjury charge|
|Plzen boss Vrba slams late mistakes|
|I almost scored as many as Messi - Tagliafico the unlikely hero for Ajax|
|Ronaldo deserves Ballon d´Or not Modric, says Casemiro|
|United fan Rafael - I´ve never lost at City|
|Davis explains abrupt mid-game NFL retirement: ´Football is not for me´|
|Lopes pays tribute to under-fire Lyon coach Genesio|
|Toulon´s Bastareaud handed five-week ban|
|Steelers WR Brown disciplined for missing meeting|
|Arteta refuses to make excuses for Manchester City´s Lyon loss|
|Allegri calls for VAR after Ronaldo´s contentious red card|
|Championship Review: Boro go second, Birmingham still winless|
|Lopetegui: Mariano took his chance|
|Juventus proved their quality after Ronaldo red card - Bonucci|
|Pogba ´class´ impresses Mourinho|
|Man City not Champions League favourites, insists Bernardo Silva|
|Isco calls for Modric to win Ballon d´Or after Champions League win|
|Wawrinka into last eight in St Petersburg|
|Goal hero Pogba is one of the best in the world - Shaw|
|Sane SOS can´t salvage sorry City display|
|Hoffenheim will learn lessons from Shakhtar draw, insists Nagelsmann|
|Valencia 0 Juventus 2: Pjanic hits the spot after Ronaldo sees red|
|Viktoria Plzen 2 CSKA Moscow 2: Krmencik heroics undone by late show|
|Benfica 0 Bayern Munich 2: Sanches returns to haunt his former club|
|Young Boys 0 Manchester United 3: Pogba double inspires Red Devils|
|Manchester City 1 Lyon 2: Cornet and Fekir stun Champions League favourites at home|
|Real Madrid 3 Roma 0: Isco stunner sets up winning start for Champions League holders|
|Ronaldo sent off on Champions League debut for Juve and may miss United reunion|
|Shakhtar Donetsk 2 Hoffenheim 2: Maycon denies Nagelsmann´s side|
|Ajax 3 AEK Athens 0: Tagliafico at the double in opening win|
|Dalot makes debut, Martial starts for Manchester United|
|India avenge ICC Champions Trophy loss with big win over Pakistan|
|Ronaldo makes Champions League debut for Juve|
|Lopetegui picks Navas over Courtois for Champions League clash with Roma|
|Willian very happy under Sarri after Conte row|
|Sarri deals blow to Chelsea kids´ Europa League hopes|
|Mendy out for Manchester City as Aguero makes bench|
|Cech accepts performances key to securing Arsenal stay|
|Monchi rules out Spain return amid Barcelona rumours|
|Durham skittled for 61 and 66 on the same day|
|Kane isn´t a machine – Lamela defends misfiring Spurs star|
|Hazard left out of Chelsea squad for PAOK trip|
|Tiger feels close to ending drought after achieving Tour Championship goal|
|Leno in line for Arsenal chance in Europa League|
|Gazidis leaves Arsenal in good shape, insists Emery|
|Eagles bring back WR Matthews, place Wallace on IR|
|England include Stokes, Hales and uncapped seamer Stone in ODI squad|
|Suwon Bluewings 0 Jeonbuk Motors 3 (aet, 4-2 on penalties): Quarter-final comeback ends in spot-kick|
|Australia captain Paine ready to slog it out with Pakistan|
|Nadal pulls out of China Open & Shanghai Masters with knee injury|
|Ostapenko begins Korea Open defence with victory|
|Joshua v Povetkin: How Olympic super heavyweight champions have fared|
|Liverpool ´made a point´ with PSG victory - Gomez|
|Osaka wows Tokyo crowd on WTA return|
|Excited Povetkin arrives in England for Joshua showdown|
|Kovac patience with Sanches set to reap rewards|
|Kovac: Madrid strong without Ronaldo, Messi is the best|
|ATP suspends umpire Lahyani over Kyrgios ´pep talk´ at US Open|
|North and South Korea seek to co-host 2032 Olympics|