A late goal from Leandro Trossard in the 83rd minute sealed the crucial victory for Arsenal in a tense encounter at the London Stadium.
The result kept the Gunners firmly in the title race while increasing the pressure on defending champions Manchester City F.C. in the battle for the top spot.
For much of the match, both teams found it difficult to create clear scoring opportunities, with the game appearing headed for a goalless draw.
However, Trossard eventually broke the deadlock late in the contest, finishing calmly after a well-constructed attacking move to hand Arsenal all three points.
The decisive goal triggered wild celebrations among Arsenal players and supporters, who recognised the importance of the victory with the season nearing its conclusion.
West Ham, meanwhile, came into the fixture desperate for points as they continue their fight against relegation.
The hosts delivered a disciplined display and managed to frustrate Arsenal for large parts of the game, especially during the opening half.
Encouraged by their home fans, the Hammers defended strongly and occasionally threatened on the counterattack but failed to break through Arsenal’s backline.
Despite the loss, West Ham’s performance reflected their determination to avoid relegation from the Premier League.
Arsenal dominated possession throughout the encounter but initially struggled to penetrate West Ham’s organised defence before Trossard’s late intervention secured the breakthrough.
With only a handful of matches remaining this season, the victory represents a significant boost for Mikel Arteta’s side as the Premier League title race heats up.