Notts County ended a run of nine straight defeats and hauled themselves out of the League One relegation zone with a hard-fought victory at Tranmere.
The game's only goal saw Craig Westcarr convert a first-half penalty after Zoumana Bakayogo had fouled Jon Harley.
Tranmere had been the better side until that point, but a stop-start second half failed to ignite until late on.
Rovers' Adam McGurk's header was tipped over before Ricky Ravenhill saw red for the Magpies for violent conduct.
The vital win moves Martin Allen's Notts up to 19th place, two points clear of Walsall - who drop into the final relegation place.
Tranmere remain in 18th, six points clear of the drop zone.
Tranmere manager Les Parry told BBC Radio Merseyside:
"We all know Zoumana Bakayogo and he said it wasn't a penalty. The lad's just got in front of him and slipped and that's how it looked from where I was.
"We said to the lads at half time 'don't get frustrated' even if it's still 1-0 with 10 minutes to go. We didn't and we were a little too frantic.
"The crowd got behind us brilliantly because I think they could see the effort the lads were putting in."
Notts County manager Martin Allen told BBC Radio Nottingham:
"That is a big three points. What spirit, determination, unity and resilience - all the words you could think of were rolled into that performance.
"You could see what it meant to everybody and I am very proud of them.
"In just over a week that's three good performances - OK there have been two defeats, but it's three good performances."
Tranmere 01 Warner Booked 03 Cresswell 05 Goodison 06 McChrystal 12 Taylor 17 Kay Booked 24 Bakayogo (Jennings - 60' ) 08 Welsh 10 Weir (McGurk - 70' ) 07 Showunmi 27 Akins (Robinson - 83' ) Substitutes 13 Collister 14 Wood 18 Blanchard 09 Robinson 15 Fraughan 21 Jennings 26 McGurk Notts County 17 Nelson 06 Thompson (Lee - 72' ) 14 Chilvers Booked 24 Regan (Hawley - 53' ) 26 Harley Booked 28 Sodje Booked 08 Ravenhill Dismissed 10 Bishop 25 Spicer Booked 09 L Hughes (Burgess - 58' ) 20 Westcarr Substitutes 01 Burch 05 Lee 21 Martin 22 Judge 15 Hawley 27 Burgess 29 Brandy