A sensational last-gasp 80-metre try by Karl Pratt helped save Leeds who, prior to the score, had looked in danger of falling at Wakefield.
The game swung from end to end throughout and it looked as though both sides would evenly share the league points before Pratt arrived on the scene to steal the win from a heartbroken Trinity.
The first half of the Yorkshire derby was largely dominated by the lowly Wildcats, who shocked The Rhinos early on with two tries in the first 12 minutes.
It was Gareth Ellis who was the star of the show as he crossed for a quickfire brace to add further to his rapidly-growing reputation.
Wildcats loose-forward Ian Knott banged over the first conversion before Leeds hit back through youngster Chev Walker. A six-pointer from Knott soon followed to put Wakefield back into the driving seat, but it was to be the star man's last contribution as soon after he left the field on a stretcher.
Leeds managed to regroup and were rewarded with a score through the ever-impressive Karl Pratt and Kevin Sinfield's conversion meant The Rhinos went in at the break with just a six-point deficit.
Moments into the second half and Leeds were back on level terms as Ryan Sheridan raced over and Sinfield tagged on the conversion. But back came The Wildcats as they went over for two tries in the space of just four minutes through Kris Tassell and Neil Law.
Brad Davis, who had taken over the kicking duties, banged over both conversions and the home side were well on top.
But in a game that was swinging from end to end it was unsurprising that two Leeds tries in as many minutes soon followed from Willie Poching and Chev Walker, both of which Sinfield goaled to put The Rhinos in front for the first time.
Martin Moana then put The Wildcats back in the lead before the game was squared up as Rob Burrow scooted over and a superb game was to have a fitting end as Pratt raced 80 metres to score the match-winner.Like