Match ends, Lincoln City 3, Oldham Athletic 2.
National League side Lincoln held on to shock League One strugglers Oldham and reach the third round of the FA Cup for the first time since 2010.
The Imps, who have not lost since 24 September, took the lead through Theo Robinson's close-range header.
Terry Hawkridge slotted in the second shortly after, and Robinson chipped in to make it 3-0 after the break.
Peter Clarke and Billy McKay scored to give Oldham hope, but they could not find a late equaliser.
Cameron Burgess came closest to levelling the scores, planting a free header wide of the target.
Lincoln, who are second in the National League, will now face a trip to Championship side Ipswich in the third round, which takes place on 6-9 January 2017.
They last made it to the last 64 in the 2009-10 season, losing 4-0 to Bolton, then of the Premier League.
Two-goal hero Robinson, released by Port Vale at the end of last season, had been a free agent until 8 October, when Lincoln boss Danny Cowley signed him on a short-term contract.
Oldham, who are 23rd in League One, have now failed to win in five matches in all competitions.
'Premier League' mentality made the difference
Lincoln manager Danny Cowley paid tribute to the club's fans after the game, saying the 7,012 supporters in the ground "carried" his side to the win after conceding two quick goals.
"For us to have over 7,000, it's beyond all of our wildest expectations," he told BBC Radio Lincolnshire.
"I think credit goes to the players, because they've got people in the city believing again
"We said it in the dressing room that they might have League One players, but we've got Premier League people.
"We've got proper people, proper characters and they dug in when it really mattered."
Line-ups
Lincoln City
Formation 4-4-2
- 1Farman
- 2Wood
- 5Waterfall
- 27McCombe
- 3Habergham
- 28Arnold
- 8Power
- 30Woodyard
- 11HawkridgeSubstituted forAndersonat 72'minutesBooked at 90mins
- 9Rhead
- 31RobinsonSubstituted forMuldoonat 81'minutes
Substitutes
- 7Muldoon
- 10Marriott
- 12Anderson
- 21Walton
- 22Fixter
- 24McMenemy
- 29Weatherell
Oldham
Formation 4-4-2
- 1Ripley
- 16DummiganBooked at 3mins
- 26Clarke
- 5Burgess
- 3ReckordSubstituted forMckayat 66'minutes
- 27McLaughlin
- 28Green
- 8BanksBooked at 90mins
- 10WinchesterSubstituted forCroftat 55'minutes
- 19ErwinBooked at 84mins
- 12LadapoSubstituted forOseiat 77'minutes
Substitutes
- 2Law
- 9Mckay
- 11Croft
- 13Kettings
- 18Osei
- 24Fane
- 31Dunne
- Referee:
- Gavin Ward
- Attendance:
- 7,012
Match Stats
- Possession
- Home41%
- Away59%
- Shots
- Home6
- Away21
- Shots on Target
- Home5
- Away6
- Corners
- Home1
- Away5
- Fouls
- Home10
- Away8
Live Text
Post update
Full Time
Second Half ends, Lincoln City 3, Oldham Athletic 2.
Post update
Foul by Peter Clarke (Oldham Athletic).
Post update
Bradley Wood (Lincoln City) wins a free kick in the defensive half.
Booking
Harry Anderson (Lincoln City) is shown the yellow card for a bad foul.
Post update
Cameron Burgess (Oldham Athletic) wins a free kick in the defensive half.
Post update
Foul by Harry Anderson (Lincoln City).
Booking
Oliver Banks (Oldham Athletic) is shown the yellow card for a bad foul.
Post update
Attempt missed. Oliver Banks (Oldham Athletic) right footed shot from outside the box misses to the left.
Post update
Attempt blocked. Oliver Banks (Oldham Athletic) right footed shot from outside the box is blocked. Assisted by Ryan McLaughlin.
Booking
Lee Erwin (Oldham Athletic) is shown the yellow card for a bad foul.
Post update
Foul by Lee Erwin (Oldham Athletic).
Post update
Harry Anderson (Lincoln City) wins a free kick on the right wing.
Post update
Foul by Oliver Banks (Oldham Athletic).
Post update
Jack Muldoon (Lincoln City) wins a free kick on the left wing.
Substitution
Substitution, Lincoln City. Jack Muldoon replaces Theo Robinson because of an injury.
Substitution
Substitution, Oldham Athletic. Darius Osei replaces Freddie Ladapo.
Post update
Attempt missed. Cameron Burgess (Oldham Athletic) header from the centre of the box misses to the right. Assisted by Oliver Banks with a cross following a corner.
Post update
Corner, Oldham Athletic. Conceded by Sam Habergham.
Post update
Attempt missed. Freddie Ladapo (Oldham Athletic) header from the left side of the six yard box is high and wide to the right. Assisted by Oliver Banks with a cross following a corner.