Winston Reid scored a dramatic late winner to make it a fairytale ending for West Ham in the final ever game at the Boleyn Goal and help them keep alive their European hopes with a stunning 3-2 victory over Manchester United.
Despite the game being delayed 45 minutes due to the United team coach being delayed, both sets of players produced a thrilling five goal display and it was the perfect send off for the Hammers before their historic move during the summer.
Diafra Sakho got the Hammers off to the best possible start with the opening goal after just ten minutes, but United threaten to ruin the celebrations as they raced into a 2-1 lead with two goals from Anthony Martial.
But the West Ham players refused to lie down and Michail Antonio brought the home side level before Reid stole all the headlines with a close-range header.
The victory means the Hammers can guarantee a top six finish if they beat Stoke in their final game on Sunday.
It was always going to be an emotional night as the fans walked through the turnstiles for the final ever time.
The Hammers have been playing at the Boleyn Ground for 112 years and the famous old stadium is steeped with magical moments throughout the decades.
From the great Bobby Moore, to the legendary Billy Bonds and Sir Trevor Brooking, the West Ham fans have seen some of the greatest players in the club's history produce their best football in the East End of London.
The stands may have changed throughout the years, but the atmosphere has been unrivalled – especially under the lights and this was always going to be an unforgettable evening.
From the moment West Ham captain Mark Noble led his players onto the pitch, you could sense the incredible atmosphere around the ground.
The final rendition of bubbles being played before kick-off inspired the whole crowd and it seemed to inspire the players as they dominated the opening 45 minutes.
The Hammers could have opened the scoring after just two minutes when the ball dropped down nicely for Manuel Lanzini but his over-head kick flew just over the bar.
But the Boleyn Ground erupted when Sakho fired the home side into the lead on ten minutes.
Aaron Cresswell released Lanzini down the left hand side and he played the ball back to Sakho who made no mistake striking the ball past David de Gea into the corner of the net.
It was just the start that Bilic would have been looking for and the perfect way to start the final ever game.
The Hammers continued to mount pressure on the United goal and could have added a second on 19 minutes when Antonio's cross fell to Andy Carroll who chested the ball down for Dimitri Payet and he fired a low shot straight at De Gea.
Carroll then had a golden chance to double the home side's lead on 20 minutes after he broke the offside trap and was clean through on goal but his shot was saved by the legs of De Gea.
Antonio thought he had got on the scoresheet sixty seconds later after Mark Noble's deflected cross was flicked over the line by the Hammers winger but his effort was ruled out after the ball was adjudged to have gone out of play.
It was all one-way traffic and there was another big chance for the home side on 32 minutes when Noble burst clear into the United half and played the perfect pass into Payet but the ball bounced up at just the wrong time and the Frenchman struck his shot wide of the post.
But United made West Ham pay for those missed opportunities when they grabbed an equaliser on 51 minutes.
De Gea's long goal kick picked out Mata who released Martial and the United forward fired the ball past Randolph.
Carroll saw his header cleared off the line by Martial on 68 minutes but it was United who threatened to spoil the party as they added a second on 73 minutes.
Rashford played the ball through to his strike partner Martial whose cross-shot completely caught out Darren Randolph and the ball flew into the corner of the net for his second of the game.
Bilic's side have shown on a number of occasions that they are never beaten and this proved to be the case once again as they drew level on 77 minutes.
Payet's cross fell perfectly for Antonio and he directed a close-range header past De Gea into the roof of the net.
On a night of so many emotions there was to be one final twist in the storyline as Payet turned provider once again.
The Frenchman crossed the ball in for Reid who rose above Daley Blind to head the ball past De Gea. The United keeper got a hand to the ball but it was not enough to stop it crossing the line.
Cue the wild celebrations around the Boleyn Ground and it proved to be the perfect send-off as it helped the Hammers secure all three points and keep alive their hopes of securing a European place.
West Ham: Randolph, Antonio, Reid, Ogbonna, Cresswell, Lanzini (Obiang 83), Kouyate, Noble, Payet (Valencia 90), Sakho (Tomkins 83), Carroll
Subs not used: Collins, Moses, Emenike, Spiegel
Manchester United: De Gea, Valencia (Januzaj 86), Smalling, Blind, Rojo, Schneiderlin (Carrick 46), Mata, Herrera (Lingard 82), Rooney, Martial, Rashford
Subs not used: Jones, Depay, Romero, Borthwick-Jackson
Bookings: Martial, Valencia, Herrera
Referee: Mike Dean (Wirral)