Michy Batshuayi scored his fourth goal for Crystal Palace to put the Eagles 2-1 ahead in the first half

Cardiff City will make an instant return to the Championship after their Premier League relegation was confirmed with a home defeat against an impressive Crystal Palace.

Needing to win this game to keep intact their faint hopes of staying up, Cardiff hit the post inside the first minute through Josh Murphy but then fell behind when their former loanee Wilfried Zaha fired into the bottom corner from the edge of the area.

The Bluebirds equalised less than two minutes later as Martin Kelly turned a Leandro Bacuna cross into his own net, only for Palace to regain the lead as Michy Batshuayi applied an emphatic finish to a fluent passing move.

Cardiff rallied with a handful of second-half chances but Andros Townsend crushed any lingering hopes the hosts had of avoiding relegation when he cut inside from the right wing and struck with a low effort that went in off the post.

Bobby Reid scored in the 90th minute to reduce the Bluebirds' deficit but they were ultimately well beaten by a confident Palace side, who climbed up to 12th in the Premier League table.

In a quirky twist of fate, the Eagles' victory also secured top-flight survival for their bitter rivals Brighton.

Cardiff, meanwhile, are left to reflect on their second successive Premier League stint the that has ended after a single season.

Cardiff down but not disheartened

Cardiff 2-3 Crystal Palace: Warnock has 'no complaints' despite relegation

Even before kick-off, there was an air of resignation at the Cardiff City Stadium, where the home fans seemed to have reluctantly accepted their team's likely fate.

With Cardiff needing to beat Palace and then win at Manchester United on the final weekend - while also hoping Brighton lost to Arsenal and Manchester City - the prospect of survival was remote.

The mood was not as gloomy as it might have been, though. The common refrain among most Cardiff supporters was that they couldn't have asked for more effort from their side, who were written off at the start of the season and at least still had some sort of chance - however slim - of clawing their way to safety.

Having any kind of hope gave the players and fans reason to believe, and that was evident when Murphy's deflected 25-yard strike hit the post to prompt a huge roar of encouragement from the crowd.

Reality kicked in, however, when Zaha's low effort nestled in Cardiff's net; the home fans silenced as the severity of their side's predicament dawned on them.

Neither the players nor fans meekly accepted their fate, though, and Kelly's own goal briefly renewed their hopes of a miraculous escape.

But although Warnock's men grafted as they always have done, they were simply not up to the standard of their slick opponents.

Cardiff looked heavy-legged and perplexed as Palace's attackers out-thought and outplayed them, and it was a small wonder that the hosts were not further than 2-1 behind at half-time.

That has been the story of their season: wholehearted in their commitment and endeavour but limited in terms of their ability, and vulnerable against genuine quality.

Down but not disheartened, the vast majority of home fans stayed behind after the final whistle to pay tribute to their players and veteran manager, who they serenaded with loud cries of "There's only one Neil Warnock".

Palace impress on the road again

Cardiff 2-3 Crystal Palace: Eagles creativity & quality pleases Roy Hodgson

Comfortable in mid-table and with little to play for, Palace may have seemed like ideal opposition for a Cardiff side fighting for survival - but Roy Hodgson's team had a formidable away record to maintain.

The Eagles had already collected 16 points on the road in 2019 - a total only bettered by Manchester City - and their counter-attacking here demonstrated why they have been such a force away from Selhurst Park.

Zaha and Townsend were both in irresistible form on the left and right wings, stretching Cardiff's defenders with their pace and movement, switching positions with Jordan Ayew and Batshuayi to devastating effect.

The first goal was an illustration of Zaha's individual trickery - with a subtle drop of the shoulder to deceive Aron Gunnarsson before firing in - while the second was a triumph of team play.

Zaha found Luka Milivojevic, who passed to Ayew, who then threaded the ball through Bruno Ecuele Manga's legs to Batshuayi, who blasted the ball into the top corner.

Although Cardiff recovered and threatened to level for a second time, Palace reasserted their control with a fine third goal as Townsend sped down the right flank, cut inside and scored with a low left-footed strike.

Some Palace fans had joked before this match that they would have liked to see their team lose in order to damage Brighton's chances of staying up - but the players did not get that memo.

This was an assured performance brimming with attacking promise that bodes well for next season.

Man of the match - Wilfried Zaha (Crystal Palace)

The former Cardiff loanee was almost unplayable on the left wing, taking his goal well and creating several chances for his team-mates.

'I have nothing but praise for everybody' - what they said

Cardiff boss Neil Warnock, speaking to BBC Sport: "They [the fans] knew when I took over the club was in a mess. It's been reborn - everybody is singing from the same hymn sheet.

"They know we've given it our best. We had some great chances in the second half. The Chelsea result killed us, that night in the dressing room. It was really low that night. They have kept fighting so I have no complaints.

"The problems we have had to put up with throughout the season, I have nothing but praise for everybody. It makes such a difference when you hear the crowd."

Crystal Palace manager Roy Hodgson, speaking to BBC Sport: "We scored three good goals and created some good opportunities aside from that - their goalkeeper made some outstanding blocks.

"It's never easy coming to a team fighting for their lives once your own safety is secured. We showed some good quality."

On the difference between away form and home form: "Away from home it's been different, we've taken our chances much better, scored some very good goals and we do find when we play away from home that the game opens up more. Teams have shown respect to us this year and don't leave many gaps.

"We still believe Selhurst Park is an excellent ground to have as a home ground and I hope next season we get as many home points as we manage to get away."

Cardiff straight back down again - the stats

Cardiff City have become the only team to play in more than one Premier League season and be relegated every time (also relegated in 2013-14).

Crystal Palace have won 29 away Premier League points this season (W9 D2 L8) - only Man City, Liverpool and Spurs have won more.

Neil Warnock has suffered his third top-flight relegation, going down with three different teams in three different decades - Notts County in 1991-92, Sheffield United in 2006-07 and Cardiff City in 2018-19.

Nine of Wilfried Zaha's 10 Premier League goals for Crystal Palace this season have been scored away from home. Among players to score 10+ goals in a season, it is the joint-highest percentage of away goals, along with Rod Wallace for Leeds United in 1997-98 (also nine out of 10).

Only Jamie Vardy (10) and Harry Kane (11) have scored more away Premier League goals this season than Zaha.

Michy Batshuayi has ended on the winning side in all eight Premier League games in which he's found the net. Only Daniel Agger (nine) and Chris Smalling (11) have scored in more games with a 100% record.

Cardiff suffered 11 home league defeats this season, only losing more in two previous campaigns - 13 in 1984-85 and 12 in 1994-95.

Crystal Palace defender Martin Kelly has scored both of their last two own-goals in the Premier League, scoring one today and against Chelsea in March 2018.

What's next?

Cardiff travel to Manchester United and Crystal Palace host Bournemouth on the final day of the season next Sunday (both 15:00 BST).