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.
By Simon Stone, BBC Sport
In a way, David Moyes and West Ham have been on a very similar journey - and have now reached the point of progression together.
In 2013, Moyes took the calculated gamble to give up a position of strength at Everton to replace Sir Alex Ferguson at Manchester United. Three years later, West Ham did something similar by leaving the Boleyn Ground loved so much by their fans to make a new home at London Stadium.
It is fair to say that the respective moves did not work out as planned for either party. There was even a point in the middle where they came together - then split again.
Now Moyes has delivered a campaign that saw him spoken about in manager of the year terms and West Ham - finally - can plan for the kind of European campaign they envisaged when negotiations began over their Olympic Stadium switch.
The three-year contract Moyes has signed is a show of faith from him in the Hammers owners, and from them in a manager who has proved to be capable of building a club and delivering a squad that, if not quite breaking into the elite, at least challenges them on a consistent basis.
They will need to make more astute signings like Czech pair Tomas Soucek and Vladimir Coufal to cope with the rigours of the Europa League but Moyes and West Ham are back at the starting gate again. It will be interesting now to see just how far they can go.
- It's a mum-eat-mum world: Motherland returns for a third season of playdate politics and PTA terror
- You're Dead to Me: Was Lord Byron the most scandalous celebrity of the 19th century?