Seanie McCormack kicked an injury-time equaliser as Longford and Wexford drew 2-09 to 0-15 in an exciting Sunday afternoon Leinster Championship quarter-final at Croke Park.
It looked as if a late Wexford rally would earn them a victory when Rob Tierney struck a cute point.
However, with full time beckoning McCormack held his nerve to level the match with an injury time free kick.
The replay has been fixed for 10 June.
A decent opening period featured plenty of smashing scores from both outfits as Wexford and Longford thundered into the contest.
Buoyed following encouraging Allianz NFL Division Three campaigns, there was much to admire in how they approached this contest.
By the end of the first quarter six points had been shared evenly between the sides with Brian Kavanagh carrying a potent threat inside for Longford.
Wexford were trying to run the ball from deep with wing-back Adrian Flynn venturing forward to telling effect.
It remained tight and tense until the interval and Wexford led by 0-05 to 0-04 until Longford netted a 30th-minute goal.
Wexford midfielder fouled Niall Mulligan and from the resultant penalty Paul Barden finished with real assurance.
Kavanagh added his fourth point from play as Longford led by three, but Wexford were defiant, narrowing the deficit with efforts from Eric Bradley and the excellent Flynn.
A McCormack free gave Longford a slender 1-06 to 0-07 interval advantage, which was a fair reflection of what had happened.
Points after the restart from Redmond Barry and two further fantastic scores from Flynn had Wexford in front.
Under pressure Longford responded as Colm P Smyth's clever pass released Paul Barden, who drilled a second goal.
Then David Barden forced a reflex save from Anthony Masterson before Niall Mulligan added a point moments later.
But the Model men were gritty as Ben Brosnan landed a distance free and Redmond Barry contributed a point from play to trim Longford's cushion to the minimum, 2-07 to 0-12.
McCormack clipped a free for the midlanders, but again Wexford replied to level as Ciaran Lyng and a Ben Brosnan free from an acute angle restored parity with four minutes left on the clock.
Then Tierney nudged Wexford ahead, but Longford remained calm with McCormack making no mistake with a routine free.
Wexford: A Masterson; N Murphy, G Molloy, R Tierney (0-1); L Chin, B Malone, A Flynn (0-5); D Waters, R Quinlivan; C Carty, E Bradley (0-1), B Brosnan (0-3, 3fs); S Roche, C Lyng (0-3, 1f), R Barry (0-2). Subs: PJ Banville for Carty (40 mins), P Byrne for Roche (56 mins), C Morris for Quinlivan (64 mins), J Wadding for Flynn (70 mins).
Longford: D Sheridan; D Brady, B Gilleran, D Reilly; CP Smyth, M Quinn, S Mulligan; B McElvaney, J Keegan; D Barden, P Barden (2-0, 1-0 pen), N Mulligan (0-1); D McElligott, B Kavanagh (0-4), S McCormack (0-4, 3fs). Subs: P Kelly for Barden (50-55 mins), P Kelly for McElligott (57 mins).
Referee: M Collins (Cork).