Dany N'Guessan hit a last-gasp winner as Lincoln earned a 2-1 victory to inflict on Gillingham.
Lincoln leave it late to end Gills' run
Dany N'Guessan hit a last-gasp winner as Lincoln earned a 2-1 victory to inflict Gillingham's first home league defeat since August.
The Gills looked on course for their fourth league win on the spin when Simeon Jackson struck his 14th goal of the season from the spot after Frank Sinclair had fouled Adam Miller.
And goalkeeper Simon Royce kept Gillingham in front with a spectacular save to deny winger N'Guessan.
But the Imps got back on level terms when veteran striker Geoff Horsfield scored his first goal for almost a year.
Horsfield hit a cracking 35-yard shot, which crashed in off the underside of the bar.
And just when it looked like Lincoln were heading for a fourth successive draw, N'Guessan broke clear to net the winner with a right-footed shot into the bottom-left corner of the goal.