Wayne Rooney was sent off for Manchester United as his side clung on to resolutely beat West Ham for their second league win of the season.
The home side were cruising after Rooney swept in a Rafael cross and Robin van Persie rifled in a low shot.
But Diafra Sakho nodded in for the Hammers before Rooney was sent off for a reckless tackle on Stewart Downing.
Enner Valencia shot wide and Kevin Nolan had an effort ruled out for offside as the home side held on.
The relief was palpable around Old Trafford at the final whistle, while there was also anger at referee Lee Mason for his decision to dismiss Rooney just before the hour mark.
However, the England striker kicked out at Downing as the Hammers threatened to launch a counter-attack and is now set to miss games against former club Everton, West Brom and Chelsea.
West Ham will be left to rue being on the wrong end of a close offside call when Nolan's last-gasp prod was disallowed but they have now lost 20 of their last 22 games at Old Trafford.
Manchester United boss Louis van Gaal had been looking for a response from his side following their 5-3 humbling at Leicester last Sunday and, although his side won, it was almost a similar story.
A defensive crisis had forced the Dutchman to draft 19-year-old Paddy McNair into central defence and £27m summer signing Luke Shaw in at left-back as the duo both made their club debuts.
But, for all of the home side's struggles at the back, they still had a vast array of attacking artillery and it did not take long for that to fire.
Rafael raced down the right flank and delivered a cross which Rooney converted with a first-time glanced shot to the far post.
Van Gaal has questioned the England international's ability to play as a striker but Rooney's finish was clinical and took his tally to 175 as he overtook Thierry Henry to move into the outright third position in the Premier League's record of all-time top scorers.
The home side almost ruined their eye-catching forward play when a poor backpass from midfield released Enner Valencia on the home goal only for the Ecuadorian to blaze his effort over.
The Old Trafford side's second came when Ander Herrera dispossessed Alex Song before Radamel Falcao slid a pass through to Van Persie, who angled in a right-foot shot.
But, Van Gaal's side had shown against Leicester that they have a propensity for hitting the self destruct button and they again made life difficult for themselves.
Referee Lee Mason denied the Hammers a penalty when Morgan Amalfitano's hooked cross appeared to strike the arm of Falcao before the visitors pulled a goal back.
Home keeper David De Gea missed punching away a corner and, after Valencia's header came back off the crossbar, Sakho was on hand to nod home for his fourth goal in five games.
Rooney red card then gave the visiting side hope but, despite a Sakho header into the side-netting and Nolan's late effort, Van Gaal's side hung on to close out the victory.
Latest Stories
-
I trust Bawumia; he has never lied to me – Akufo-Addo
7 mins -
Bawumia is hardworking; offers the youth platform to share ideas – Kow Essuman
9 mins -
IGP, Police commanders worship with churches in Ghana as part of security arrangements for 2024 elections
14 mins -
Mahama is a failed president; give Bawumia a chance – Akufo-Addo to Ghanaians
21 mins -
‘No child left behind in Free SHS’ – Akufo-Addo declares
34 mins -
MMDAs tasked to pay more attention to TB cases
36 mins -
2024/25 GPL: Defending champions Samartex suffer second consecutive loss as Basake Holy Stars wins 1-0
38 mins -
Government stands firm in Galamsey fight, says Akufo-Addo
43 mins -
National Peace Council assures public of violent free elections
48 mins -
Agenda 111 to be discontinued if NDC comes to power – Akufo-Addo
57 mins -
Mahama begins 3-day tour of the Western Region today
1 hour -
NCCE holds Parliamentary Candidates’ dialogue at Kumbungu
1 hour -
Akufo-Addo commissions new oil and gas services terminal
1 hour -
Bono East NIB seizes stolen SHS rice, arrests driver
1 hour -
Petroleum Commission gives $3.6bn contracts to indigenous companies
2 hours