Castleford pulled off one of the shocks of the Super League season as Wigan crashed to back-to-back defeats for the first time this year.
The Tigers led the league leaders 12-0 at the break thanks to tries from Kirk Dixon and Grant Millington in a half that Wigan really struggled to get a foothold in.
James Clare and Josh Charnley traded scores in the second half before a penalty from Dixon on the hooter rounded off a famous win for Cas.
Wigan were already without Sam Tomkins and Lee Mossop but the late withdrawals of Tom Spencer and Logan Tomkins saw head coach Shaun Wane give former Wales rugby union international Andy Powell his first experience of Super League.
Powell was named on the bench while Wane also welcomed back Blake Green, Michael McIlorum and Gil Dudson after injury lay-offs.
Tigers boss Daryl Powell was unable to call upon former Wigan prop Ben Davies for the visit to the DW Stadium but he did recall Keith Mason, while there was also a place for winger Clare on the back of signing a new two-year deal with the club.
The opening try came in the 20th minute and it came from a Lewis Tierney mistake.
The young full-back did extremely well to collect Rangi Chase’s high kick but was clattered with a ferocious hit and dropped the ball, allowing Dixon to touch down with Chase converting.
Wigan attempted to hit back straight away with back-to-back sets and the home crowd thought they had levelled matters with Pat Richards seemingly having a walkover following Sam Powell’s kick over, but the Australian winger dropped the ball with nobody in sight.
Powell was introduced to the action on 28 minutes and he was twice involved in Wigan’s next attack as Blake Green thought he had set up their first try but Charnley had been adjudged to have knocked on before Darrell Goulding touched down.
Chase was running the game for the visitors and it was only a last-gasp tackle from Liam Farrell that stopped him from extending their lead.
Anthony Gelling was then penalised for lying on in the tackle and Dixon opted to take the two and slot home the penalty for an 8-0 lead.
The Tigers extended their lead even further after the restart as Richard Owen burst down the right before sending Jordan Tansey clear and he in turn offloaded to Millington to touch down despite the attentions of Tierney.
Nothing was going right for the Warriors as Green’s attempted 40-20 sailed out on the full, giving Castleford great field position, but Dixon failed to take advantage with the penalty.
Wigan’s ill discipline was once again their downfall as Chase took full advantage of another penalty, sending out a sublime ball to Dixon who then sent Clare in at the corner to make the score 16-0.
It took Wigan 58 minutes before they managed to cross the whitewash through Charnley. Green went close with a neat step and go and after he was held down they took a quick tap penalty and Goulding fired out a ball for the winger to touch down in the corner.
With the clock running down Castleford received another penalty and Dixon converted to give the Tigers a stunning win.
Wigan Warriors: Tierney, Charnley, Goulding, Gelling, Richards, S. Powell, Smith, Crosby, McIlorum, Dudson, Hansen, Farrell, Burke. Subs: Hughes, Green, Tuson, A. Powell.
Castleford tigers: Tansey, Owen, Shenton, Dixon, Clare, Hauraki, Chase, Boyle, Milner, Huby, Holmes, Millington, Massey. Subs: Walker, Clark, Thompson, Mason.
Referee: Phil Bentham (Warr’ton).