LONDON — Diafra Sakho struck in the 90th minute to take West Ham out of the relegation zone by beating Swansea 1-0 in the English Premier League on Saturday.

Sakho, who wanted to leave the club for Rennes, came on at London Stadium in the 78th minute of what Hammers manager Slaven Bilic called a “must-win” game.

Andy Carroll had already turned a cross from substitute Arthur Masuaku against a post and, when the winger whipped in a second cross, Sakho arrived on cue.

The Senegal striker, yet to start a league game this season, slid in at the far post to score.

Swansea dropped into the bottom three and has not won its last four league games.