Preston North End earned a sixth home league win of the season against 10-man Cardiff City at Deepdale.
Cardiff had a goalkeeper sent off for the second straight game as Jac Alnwick saw red for a late foul on Tom Cannon.
Cannon put the hosts ahead as he struck midway through the second half just as Cardiff had been impressing.
Alnwick was then sent off in the first minute of stoppage time and Preston took advantage with Ched Evans scoring via a rebound from the freekick.
The victory lifts Preston to 11th in the Championship, while Cardiff remain 21st, still six points above the relegation zone.
The omens were not good for a high scoring contest at Deepdale.
This was a meeting between the two lowest scoring sides in the Championship with the two clubs only managing 57 goals between them from a combined 70 league games so far this term, with the last two league meetings between the clubs ending goalless.
Cardiff were without first choice goalkeeper Ryan Allsop after his late red card in the Bluebirds' 2-0 win over Bristol City, but the hosts rarely threatened stand-in Alnwick in the first half despite the goalkeeper looking uncomfortable a few times as he tried to claim crosses.
Alnwick was forced to save on 27 minutes as Troy Parrott found the target, but largely Cardiff managed to frustrate the hosts as they looked to cause trouble on the counter-attack.
The Bluebirds came close to taking the lead on 39 minutes, but Kion Etete's effort whistled just past the upright, while Preston ended the half brightly, with Cedric Kipre blocking Alvaro Fernandez' fierce effort and Bambo Diaby firing just wide.
Both sides were close with respective efforts just after the interval, but Alnwick saved from Cannon and Jaden Philogene fired just over.
Preston goalkeeper Freddie Woodman suffered an early injury that required lengthy treatment, but was able to continue and he was finally tested on 57 minutes as he saved Perry Ng's well-struck freekick.
Woodman made a stunning save on 63 minutes as he somehow tipped Sory Kaba's powerful volley around the post, as Cardiff underlined why they have won three of their last four league matches, one more than in their previous 18 league games combined.
However, just when Cardiff looked on to be on top they conceded on 67 minutes as Cannon fired home from a tight angle.
The home side should have doubled their lead five minutes later, but Brad Potts somehow missed the target from Ben Whiteman's cross.
Philogene came close on 80 minutes with a fine run and shot, but Woodman again denied the Bluebirds before Philogene fired wide.
Cardiff's afternoon ended poorly when Alnwick was sent off for fouling Cannon outside his penalty area as he tried to amend his own miskick, making it back-to-back goalkeeper red cards for the Bluebirds.
Preston took full advantage, with Welshman Evans firing home after Rohan Luthra parried the resulting freekick on his senior debut.
Preston North End: Woodman, Storey, Diaby, Cunningham, Whiteman, Potts, Woodburn (Brady 60'), Johnson (Onomah 82'), Fernández (Ledson 82'), Cannon, Parrott (Evans 60').
Subs not used: Cornell, Bauer, Delap.
Cardiff City: Alnwick, Ng, Kipré, McGuinness, O'Dowda, Sawyers, Wintle, Rinomhota (Harris 72', Luthra 90+4'), Philogene, Kaba (Ojo 64'), Etete.
Subs not used: Romeo, Sang, Colwill, Davies.