David Moyes has committed his future to West Ham by signing a new three-year contract with the club.
Moyes, 58, had been in discussions with the Hammers over a new deal since the end of the season.
The Scot is in his second spell with a side he led to a sixth-place finish and a Premier League club-record 65 points, as they qualified for the Europa League.
"I am delighted to have committed my future to West Ham United," said Moyes.
The former Everton, Manchester United and Preston manager returned to London Stadium in December 2019 to replace Manuel Pellegrini.
Moyes led the Hammers to Premier League safety in a seven-month spell from November 2017.
The Scot says he and the club's board are "fully aligned" in their vision for the club.
"This is where I want to be," added the Scot.
"I'm excited to be given this opportunity to build on what we all have already achieved here. The owners and I are fully aligned with how we want to keep developing and improving the football club.
"We have made tremendous progress in the past 15 months and that has been a collective effort from everyone at the club. We must keep pushing boundaries for consistent improvement as we all aim to continue the growing of the club."
Moyes, who has also had spells in charge of Sunderland and Real Sociedad, had been linked with a surprise return to Everton following Carlo Ancelotti's return to Real Madrid.
The Scot has managed 583 top-flight matches and is fourth on the all-time list behind Sir Alex Ferguson, Arsene Wenger and Harry Redknapp.