Luke Guttridge's header saw off AFC Wimbledon as Northampton picked up only their second home win of the season.
The Cobblers dominated early on as Guttridge drew a save from Seb Brown, with Adebayo Akinfenwa heading over from the resulting corner.
Clarke Carlisle had a header cleared off the line, while Jason Euell missed two chances for the visitors.
Guttridge nodded the winner after Brown could only deflect substitute Toni Silva's shot into his path.
The goal handed Northampton their second win in 18 league matches.
VIEWS FROM THE DRESSING ROOM
Northampton Town manager Aidy Boothroyd tells BBC Radio Northampton:
"I'm pleased, I know our fans are pleased and it's a deserved win as well.
"Psychologically, I think a clean sheet is worth four points. My fears were that we were so desperate to win that we might get caught on the counter-attack.
"It's about getting points on the board. I think our energy and form are on an upward curve.
"Luke Guttridge said to me when he signed that he'd get goals and that we won't go down with him in the team, and I think he's right."
Northampton Town 32 Weale (Hall - 90' ) 14 Johnson 25 Carlisle Booked 28 Langmead 29 Adams 17 Jacobs 22 Guttridge 27 Harding 08 Robinson (Webster - 88' ) 09 Williams Booked 10 Akinfenwa (Silva - 74' ) Substitutes 26 Hall 04 Crowe 06 Webster 24 Silva 02 Young AFC Wimbledon 01 Brown 03 Gwillim (Hatton - 82' ) 05 Stuart 17 Mitchell-King 31 Hoyte 15 S Moore 25 Moncur 28 Knott (Yussuff - 38' ) 10 Midson 27 Harrison (Jolley - 68' ) 29 Euell Substitutes 20 Turner 22 McNaughton 07 Hatton 12 Jolley 23 Yussuff