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.
|Eagles QB Wentz out for season with torn ACL|
|Brook to face Rabchenko in light-middleweight bow|
|Yankees confirm Stanton deal|
|Clermont irked by ´absurd´ Saracens saga|
|Bairstow wants England to regain trust|
|Ronaldo´s ego is his biggest motivator - Valdano|
|Bayern threaten legal action over Leno transfer rumours|
|Thompson welcomes golf´s change in policy over viewer call-ins|
|Potter delighted by underdog Ostersunds´ trip to Arsenal|
|Chelsea can bounce back from West Ham loss, says Conte|
|Real Madrid will relish PSG test, says Xabi Alonso|
|Conte urges Chelsea to be ´positive´ over Barca Champions League draw|
|Heynckes wary of Besiktas threat|
|Ostersunds handed fairytale Arsenal tie, Napoli face Leipzig|
|Taylor pays moving tribute to Crowe after equalling century record|
|Emery: PSG ´can compete with Real Madrid´|
|Totti urges Roma focus on Serie A despite encouraging Champions League draw|
|Europa League: Last 32 draw in full|
|Messi faces toughest foe in Champions League|
|Tigers confirm broken jaw for Veainu as Tuilagi nears return|
|AC Milan signed too many players, admits Fassone|
|Real Madrid face PSG, Chelsea drawn with Barcelona|
|FA seeking information over Manchester derby incident|
|India agree to be Afghanistan´s first Test opponents|
|He is one of the best strikers in the Premier League - Wilshere hails Giroud|
|Jamshed banned for failing to co-operate with PCB anti-corruption unit|
|Mata: No time to mourn derby defeat|
|Hitzfeld tells Nagelsmann to honour Hoffenheim contract|
|Amor: Mascherano future to become clear soon|
|Good things come to those who wait - Shubhankar wins Joburg Open in Monday finish|
|Huddersfield confident of Chelsea scalp - Ince|
|Sea Eagles facing sanctions over salary cap breach|
|Paine denies Aussies have crossed line with Ashes sledging|
|Road to Super Bowl hits speed bump as Eagles sweat on Wentz fitness|
|Taylor hits record ton as Windies chase mammoth total|
|Oladipo´s career performance keeps Pacers rolling|
|De Bruyne: Man City have to enjoy derby victory|
|Suspended Smith-Schuster watches on in Steelers helmet|
|Bancroft and Warner ´kissed and made up´ after Adelaide mix up|
|There is no-one like Messi – Alcacer|
|Pederson unwilling to comment on Wentz amid ACL fears|
|Kane: Bring on the best in Champions League|
|Neville: Lukaku needs to believe amid Man United struggles|
|Fitzgerald now third all time in receiving yards|
|Eagles QB Wentz suffers knee injury|
|Messi best player of all time – Rakitic|
|Gattuso: I´m even tense playing football with my son|
|Suarez admits Villarreal red swung it for Barcelona|
|Villarreal win ´crucial´ for Barcelona boss Valverde|
|O´Hair and Stricker claim QBE Shootout crown|
|Sublime O´Sullivan equals major record with sixth UK Championship win|
|Villarreal 0 Barcelona 2: Suarez, Messi restore five-point LaLiga lead|
|AC Milan 2 Bologna 1: Bonaventura brace breaks Gattuso´s duck|
|Leinster end Exeter home streak, La Rochelle shine again|
|Texans QB Savage suffers concussion; brief return sparks controversy|
|Guardiola: Man City are an honest team|
|Snow joke! Bills and Colts play in brutal blizzard|
|Mourinho: Herrera denied clear penalty in derby defeat|
|Mourinho admits title race ´probably´ over|
|Josh Gordon scores first touchdown in four years|
|Simeone defends Atleti´s style after battling win over Betis|
|Manchester City´s 14th win on the spin sets new top-flight record|
|Manchester United 1 Manchester City 2: Otamendi strikes massive blow in Premier League title race|
|Bath concerned by injury to Wales forward Faletau|
|Allardyce praises ´brave´ Pawson after penalty decision|
|Atletico Madrid set club-record unbeaten run in LaLiga|
|Ajax 3 PSV 0: Eredivisie title race gets new lease of life|
|Klopp involved in post-match spat with reporter|
|Rooney backs awarding of ´clear penalty´|
|Mathews heaps praise on Lakmal as Sri Lanka end losing streak|