Marcus Rashford scored the stoppage-time goal for Man U. Press Association

Watch: Manchester United steals win with last-minute goal vs. West Ham

Manchester United was seconds away from a frustrating draw against West Ham, but Marcus Rashford saved the day with a stoppage-time goal that secured a dramatic victory.

With less than a minute left, Edinson Cavani took a pass from Anthony Martial in the box that looked dangerously close to being called offsides. But the official's flag stayed down, and Cavani sent a cross that found Rashford for an easy goal.

A lengthy VAR check followed the goal, but it was allowed to stand. Manchester United finished the match with 18 shots compared to only six from West Ham.

With the win, Manchester United moved ahead of West Ham and climbed to fourth place in the Premier League table. The top four teams at the end of the season qualify for the group stage of the UEFA Champions League.

More must-reads:

TODAY'S BEST
NBA hands Raptors forward a lifetime ban for his part in betting scandal
Heat lose first play-in game, and possibly Jimmy Butler
Pelicans fans receive crushing Zion Williamson injury news
Struggling Astros are getting a massive boost on Friday
Mike Trout makes his thoughts on a trade from Angels abundantly clear
Nikita Kucherov gets 100th assist, but Auston Matthews can't reach 70 goals
Bill Belichick has reportedly decided on future for 2024 NFL season
NFL talent evaluators raise concerns about USC QB Caleb Williams
Dolphins GM reaffirms confidence in QB Tua Tagovailoa
Coby White's monster game leads Bulls into rematch with Heat
Two-time Stanley Cup champion announces retirement
Angels' big free-agent signing will miss entire 2024 season
Six-time NBA All-Star announces retirement 
Caitlin Clark lands massive endorsement deal from Nike
Oregon DB Daylen Austin arrested and charged with felony over fatal accident
Watch: Nicolas Batum makes it rain from deep for the 76ers
Steelers' Russell Wilson blasted by Super Bowl champion: 'You were along for the ride' for championship
Red Sox place pivotal starter on injured list with oblique strain
Yankees' Juan Soto reportedly eyeing 'bidding war' between two teams
UAlbany DL AJ Simon, a 2024 NFL Draft hopeful, dies at 25