Italy missed a glorious chance to end a three-year wait for a Six Nations win as Greig Laidlaw's late penalty secured Scotland a hard-fought 29-27 triumph in Rome.
Tommaso Allan – who had represented Scotland at junior level – scored 22 points, including two tries, as the Azzurri looked set to end a 16-match losing run in the tournament.
However, having led 24-12 early in the second half at the Stadio Olimpico, the hosts faded badly down the stretch to suffer yet more disappointment.
Scotland capitalised on Italy's tiredness, tries from Sean Maitland and Stuart Hogg, both converted by Laidlaw, putting them 26-24 ahead as the game moved towards a climax.
Allan slotted over a penalty to briefly put Italy back ahead, only for Laidlaw to respond with a successful kick of his own in the 79th minute that finally settled a see-saw contest in Scotland's favour.
The win means Gregor Townsend's squad finish the campaign with three victories and two defeats, as they did in 2017.
After Allan kicked Italy ahead with a seventh-minute penalty, hooker Fraser Brown had the simple task of picking up Hamish Watson's long pass and falling over the line for Scotland's opening try.
However, Italy responded to the setback by scoring 14 points in the space of seven minutes.
Allan beautifully stepped off his right foot to reach the line himself before setting up Matteo Minozzi with a clever grubber kick that the full-back gleefully gathered under pressure.
Scotland's riposte was prompt and powerful. Benefiting from a rolling maul, captain John Barclay plunged over for a try that Laidlaw successfully converted, making it 17-12 at the break.
Despite seeing a try from Sebastian Negri ruled out for a knock-on, Italy extended their advantage when Jake Polledri's powerful run set up a second score for Allan, who also added the extras to make it a 12-point cushion.
Yet the clock, as well as a back-line reshuffle, worked against Italy, as they succumbed in the closing stages to suffer a fourth Six Nations whitewash in the last five years.
Switched to fly-half after Finn Russell was forced off through injury, Laidlaw provided the pass for Maitland to glide over before Hogg left Negri grasping at thin air to get the bonus-point try.
Allan's boot briefly gave the home fans renewed hope, only for Laidlaw to hold his nerve from a tight angle, his successful kick completing the comeback and condemning Italy captain Sergio Parisse to a 100th Test defeat.
SCOTLAND WIN!!!!!!!!!!!!!!!!!!— J.K. Rowling (@jk_rowling) March 17, 2018
And I need a defibrillator.
Key Opta Stats:
- This was just the third win for Scotland in their last 20 Six Nations games away from home, all three of those victories coming in Rome.
- Italy have now lost their last 17 games in the Championship, the joint longest such run in Five/Six Nations history, level with France who lost 17 from 1911 to 1920.
- Parisse won his 65th cap, drawing level with Brian O’Driscoll as the most capped player in Five/Six Nations history. However, he also became the first player in history to lose 100 Test matches.
|Busy Bertens ready for bed, Muguruza gains Wimbledon revenge|
|Hart ready if England come calling - Dyche|
|Ryder Cup 2018: An honour and a burden - the unique challenge of captaincy|
|Hibino beats Bouchard again at the Tashkent Open|
|Falcons lose Ricardo Allen for season|
|Mbappe three-match ban stands following appeal|
|Tomic wins first Tour-level match since Wimbledon in Chengdu|
|Ryder Cup diary: Scoreboard shocker, captains tight-lipped|
|Mourinho will spawn lots of managers - Lampard|
|Furyk outlines Woods´ Ryder Cup motivation|
|Tiger doesn´t scare Team Europe - Bjorn|
|Ryder Cup 2018: Team USA profile|
|Woods winning ´incredibly special for golf´, says Poulter|
|Grealish commits to Aston Villa with five-year deal|
|Ryder Cup 2018: Four reasons why Team USA will win|
|Herrera ready for return - Mourinho|
|Bellew determined to prove doubters wrong against Usyk|
|Lewandowski and Boateng´s professionalism impresses Kovac|
|WATCH: Sheepish Murray comically drops commemorative plate in China|
|Cech: Arsenal have forgotten how to win Premier League titles|
|Lemar must adapt to Atleti style, says Simeone|
|Toulon to appeal suspended points penalty|
|AFE rejects Miami plan for Girona-Barca|
|Messi and Ronaldo to decide world´s best young player|
|Ryder Cup 2018: Talisman Poulter key to European hopes|
|Pogba hits out at critics who ´create drama´|
|Barcelona to appeal Lenglet red card|
|Ryder Cup 2018: Team Europe profile|
|Patriots´ Gronkowski threatened to retire if traded to Lions|
|Ryder Cup 2018: Four reasons why Europe will win|
|Tigres and Monterrey condemn violence that leaves fan in intensive care|
|Williams baffled by coach´s claim he sent her US Open final signals|
|Ryder Cup 2018: A sporting spectacular you cannot afford to miss|
|Cricket Australia closes investigation into Moeen claim|
|Zlatan impressed by ´MVP´ singer|
|Modric hoping to complete FIFA and UEFA double at Best Awards|
|Mickelson never doubted Woods would win again|
|Woods looked like Tiger of old in 80th PGA Tour win|
|Chelsea were too slow against West Ham - David Luiz|
|Tottenham star Kane acknowledges sub-par start|
|Rashid signs one-year all-format deal with Yorkshire|
|Brady and Patriots crash to back-to-back defeats|
|Gundogan looking forward to ´real test´ against Liverpool|
|Cubs move closer to clinching NL Central|
|Valverde bewildered by Lenglet red card as Barca boss questions VAR|
|Cronk a ´long shot´ to play in NRL Grand Final|
|Cleary re-signs with Panthers until 2024|
|Bills stun Vikings, Chiefs QB Mahomes impresses again|
|Tiger feels he can surpass Snead´s record after 80th victory|
|Ronaldo mentally stronger than others, says Allegri|
|MLS Review: Ibrahimovic scores as Galaxy end seven-game skid, Dallas reclaim top spot in west|
|Rose told Woods it was ´about time´ after win|
|Dustin Johnson regains number one ranking|
|Pogba: Sanchez will deliver at Man United|
|Federer, Zverev help Europe defend Laver Cup|
|I couldn´t sit or stand – Tiger Woods reflects on back woes after ending drought|
|Snead´s record in sight – Tiger Woods´ 80 PGA Tour wins|
|Nicklaus, Magic Johnson, McIlroy and Kane – Sports stars celebrate Tiger´s Tour win|
|Tiger Woods season in review: Tour Championship win caps remarkable comeback|
|49ers fear QB Garoppolo suffered torn ACL|
|World of golf is proud of Woods – Rose|
|WATCH: Tiger followed by incredible sea of fans at East Lake|
|Three takeaways from the 2017-18 PGA Tour season|
|Mbappe shows off signed Pele shirt|
|Tiger timeline: Woods´ fall and rise|
|Spieth´s breakthrough, Garcia´s Masters moment - Events between Tiger´s triumphs|
|Tiger Woods: I was close to tears on the last hole|
|Woods earns first win since 2013; Rose claims FedEx Cup|
|Pogba implores Manchester United to ´attack, attack, attack´|
|Valverde, Busquets and Vidal criticise Lenglet dismissal|