Preston's revival under new boss Graham Alexander picked up more pace as they took Cardiff's unbeaten home league record with a 4-0 triumph in the Welsh capital that moved them off the bottom of the Championship.
It was their first win on the road this season and made it seven points from their last three games after a win over Southampton and a draw at West Ham.
Thierry Small scored in the 25th minute, Alfie Devine fired home in the 33rd, Andy Moran joined them on the scoresheet in the 62nd and then skipper Andrew Hughes headed home in the 69th.
It was a tactical masterclass from Alexander's men as they completely nullified Cardiff's usual free-flowing approach and forced the home side into error after error.
It took a brilliant piece of defending from Liam Lindsay to deny top scorer Jack Moylan a tap into an empty net in the fourth minute, but after that the Preston goal was not threatened until the end of the first half.
Moran forced Nathan Trott to punch his dipping shot clear before Preston opened the scoring with a back-post finish from Small as he converted a low cross from the right by Stan Mills.
Six minutes later and Cardiff were punished again for giving away the ball. Moran stole the ball from Ronan Kpakio 30 yards out and drove to the edge of the area before picking out Devine, who stroked the ball into the bottom left corner passed a helpless Trott.
More from Championship Match Reports
• Wolverhampton Wanderers 3-0 Derby County: Adam Armstrong nets twice in Wolves win
Wolverhampton Wanderers 3-0 Derby County: Adam Armstrong nets twice in Wolves win
• Norwich City 1-1 Queens Park Rangers: Anthony Musaba earns a point for the Canaries
Norwich City 1-1 Queens Park Rangers: Anthony Musaba earns a point for the Canaries
• Charlton Athletic 4-0 Lincoln City: Addicks sweep to victory at The Valley
Charlton Athletic 4-0 Lincoln City: Addicks sweep to victory at The Valley
• Bristol City 1-1 Wrexham: Cameron Pring earns point for Robins
Bristol City 1-1 Wrexham: Cameron Pring earns point for Robins
• Sheffield United 1-1 Southampton: Sydie Peck strikes again to earn point for Blades
Sheffield United 1-1 Southampton: Sydie Peck strikes again to earn point for Blades
• Portsmouth 1-0 West Ham United: Scott Parker stays winless as Odin Bailey nets Pompey winner
Portsmouth 1-0 West Ham United: Scott Parker stays winless as Odin Bailey nets Pompey winner
Cardiff fired off a few shots in the dying embers of the half, one of which from Ollie Tanner had to be dealt with, but it had been the worst 45 minutes of football by the Bluebirds at home this season.
Not much changed in the second period as Preston continued to prove the sharper and better-connected team. Devine earned a corner in the opening minute with a shot that took a deflection before Tanner and Rubin Colwill shot wide of the posts for the home side.
An attempted pass to Cardiff skipper Colwill some 30 yards out from his goal by substitute Chris Willock missed its target and gave Moran the chance to pick up the pieces, carry up to the edge of the area before unleashing a shot that went over Trott after catching the boot of defender Joel Bagan.
As if that was not bad enough for the Cardiff fans, who are preparing for one of their biggest games of the season on Sunday against arch-rivals Swansea, they saw their side concede a fourth in the 69th minute when Hughes rose above Colwill to head home from a corner.
• Watch FREE Championship highlights | Latest EFL news and rumours
• Not got Sky? Latest Sky Sports deals or stream EFL games with no contract๐บ
The managers
Cardiff's Brian Barry-Murphy:
"We thought we could produce a good performance and win but it wasn't possible. We gave the ball away too often and that gave them clear chances on our goal and they took them.
"We have to own the result and own that performance. We have to wake up tomorrow and concentrate on what's going to be a great game on Sunday.
"We didn't play well and we have to accept that. We have to be miles better to win games and we have shown we can do that against the best teams in the division.
"We need to play better. Our game is based on a high technical level and when we build up at the back, it's with a really clear idea to progress really quickly to the opponent's last line in a really aggressive manner."
Preston's Graham Alexander:
"I'm ecstatic, it was a brilliant performance. I'm so pleased for the players and the supporters that came down on a Tuesday night all this way to see us.
"The players were magnificent tonight. I think the way they've approached the last two games especially, against massive clubs at this level, and then coming to this place to face an undefeated side was great.
"Cardiff had scored a lot of goals and they're a really good team. So to keep a clean sheet, and to score four goals, shows it was a really clinical and a super professional performance.
"Every player had a role to play for his team-mates and for the collective, and they did it well. They were magnificent, and the subs that came on impacted the game as well.
"Hopefully they'll keep gaining confidence, keep believing in themselves because they are good players. Hopefully the clarity we're trying to create for them will help them.
"It took a few weeks for me to understand what the challenge was and what they've been through, but they're showing great signs of becoming the team that we believe they can be."
What the result means and next fixtures...
• Championship fixtures
Play Super 6 for a chance to win ยฃ250k! Enter for free.