Following Manchester United's win in the 2016 FA Cup Final, West Ham took their Europa League place and qualified for the third qualifying round of the 2016–17 edition. At the end of the tough first season at the London Stadium, the team finished 11th, along with having to deal with the departure of star man Dimitri Payet. However, the team suffered a poor start to the following season, taking only two wins in their opening 11 games. Following a 4–1 defeat to Liverpool at home and with the team threatened by relegation, Bilić was sacked on 6 November 2017. He was replaced by former Sunderland boss David Moyes on a contract till the end of the season. The team battled inconsistent form for the rest of the season but managed to avoid relegation and finish 13th. Moyes was not offered a new contract and left the club on the expiration of it on 16 May 2018.