A remarkable second-half comeback that included goals from top scorer Sam Mulroy and Liam Jackson sealed a dramatic Leinster SFC quarter-final win for Louth.
Louth manager Mickey Harte admitted afterwards that, trailing by eight points at half-time, they were simply looking for 'respectability' in the second-half.
But they went a step further by forcing a 10-point turnaround on the scoreboard to win by two and secure their semi-final place at Croke Park next Sunday.
Mulroy, still shaking off an injury, didn't have his best afternoon for Louth but still finished with 1-04 and scored a crucial 48th minute goal from a penalty that gave the Wee County real hope of snatching a result.
Substitute Jackson then tied it up in the 55th minute with a second goal and points from Conor Early and Mulroy ultimately secured the two-point win for Harte's side.
It was a real blow for Westmeath manager Dessie Dolan who must have felt that he was on the cusp of a first Championship win on the sideline.
Westmeath at least have possession of a free pass to the new All-Ireland group series as a result of last year's Tailteann Cup win.
Failing to secure promotion from Division 3 in the National League was presumably a disappointment for Dolan's side but, initially at least, it didn't appear to bother them as they roared into that big lead against the Division 2 side.
The Wee County set up in a typical counter attacking formation with captain Mulroy regularly their only player in the opposition half, with full-back Kevin Maguire on his shoulder.
Louth sought to hurt Westmeath on the break and they did carve out a couple of goal chances but Mulroy was twice thwarted in the 11th and 28th minutes by goalkeeper Jason Daly.
At the other end, Louth goalkeeper James Califf had plenty of success with getting his kick-outs away but his colleagues further out the field consistently failed to build on that possession with Westmeath dominant at the back.

At times, the Westmeath supporters groaned as they watched their own forwards run into the Louth defensive screen, forcing them to recycle possession back and forth across the pitch.
But it was only delaying the inevitable and John Heslin's 19th minute point, when he booted over from around 35 metres out after what seemed like endless hand-passing between Westmeath players, summed up their patience and how they went about their business.
That score moved Westmeath 0-04 to 0-01 clear and ex-AFL player Ray Connellan pushed them further ahead with a terrific point from distance two minutes later.
Louth lacked any sort of punch going in the opposite direction and found themselves facing waves of Westmeath pressure which resulted in points for Senan Baker, Luke Loughlin and Heslin.
The latter score from Heslin, a converted free in the 35th minute, came following a fantastic fetch in the middle of the field by Sam Duncan from a Daly kick-out which set the midlanders on the attack.
That put Westmeath into a 0-09 to 0-04 lead and they were boosted in the moments just before half-time by Ronan O'Toole's goal when he cut through the centre of the Louth defence thanks to a neat one-two with Ronan Wallace and calmly slotted low to the bottom left corner.
Whatever Harte said at half-time clearly did the trick because they were a different team in the second-half, full of energy and attacking threat.
Westmeath suddenly found themselves pinned back in their own half and only registered two second-half points in total, from O'Toole and free-taker Heslin.
Louth picked off the points in the third quarter from Mulroy, the excellent Conor Grimes and Donal McKenny before Ryan Burns was fouled for a penalty that Mulroy carefully dispatched.
If left just three between them and Louth wiped out the deficit entirely when Jackson was fed by Mulroy and slammed in the equalising goal in the 55th minute.
The sides were level again 2-08 to 1-11 but late Louth points from Early and Mulroy did the trick, securing Louth's first provincial semi-final place since 2010.
Louth: James Califf; Dan Corcoran, Peter Lynch, Donal McKenny (0-01); Ciaran Murphy, Niall Sharkey (0-01), Leonard Grey; Tommy Durnin, Conor Early (0-02); Conall McKeever, Ciaran Downey, Conor Grimes (0-02); Daire McConnon, Sam Mulroy (1-04, 1-00 pen, 0-04f), Ryan Burns.
Subs: Liam Jackson (1-00) for McConnon h/t, Craig Lennon for Murphy h/t, Paul Matthews for Burns 51, Anthony Williams for Lynch 61, Conall McCaul for McKeever 69, Oisin McGuinness for Grimes 73, blood.
Westmeath: Jason Daly; David Giles, Kevin Maguire, Jack Smith; David Lynch, Ronan Wallace, Jamie Gonoud; Sam Duncan, Jonathan Lynam; Ray Connellan (0-01), Ronan O'Toole (1-01), Senan Baker (0-02); Luke Loughlin (0-03, 0-1 45), John Heslin (0-03, 0-02f), Stephen Smith (0-01).
Subs: Conor McCormack for Smith 51, James Dolan for Gonoud 61, Darragh Seery for Wallace 64, Lorcan Dolan for Duncan 66.
Referee: James Molloy (Galway).