Jay Harris' winner at Lincoln sent Wrexham to the top of the Blue Square Bet Premier.
Harris struck in the 54th-minute, his low shot through the home defence beating goalkeeper Joe Anyon.
The visitors' opener was even more spectacular as Jamie Tolley hit the top corner of the net from 25 yards.
Sam Smith levelled at the end of a goal-mouth scramble to give the hosts hope.
But Lincoln could not make any more inroads despite the pressure they put Wrexham under.
Lincoln City: Anyon, Sinclair, Watts, Gowling, Nutter, Russell, Power, Fuseini (Perry 74), McCallum,T aylor (Barraclough 74), Smith.
Subs Not Used: Hone, Nicolau, O'Keefe.
Goals: Smith 45.
Wrexham: Maxwell, Obeng, Creighton, Knight-Percival, Ashton,Harris, Fowler, Tolley, Morrell, Wright,S peight (Cieslewicz 63).
Subs Not Used: Mayebi, Taylor, Tomassen, Clarke.
Booked: Tolley, Speight, Knight-Percival, Wright, Maxwell.
Goals: Tolley 29,Harris 56.