Brighton have announced the signing of German midfielder Mahmoud Dahoud from Borussia Dortmund.
The 27-year-old will join Albion on a four-year contract on July 1 following the expiry of his deal with the Bundesliga club.
Syria-born Dahoud, who was capped twice by Germany in 2020, becomes the Premier League side's third signing of the summer following deals for Joao Pedro and James Milner.
Seagulls head coach Roberto De Zerbi told his club's website: "I'm excited to have Mahmoud in my team.
"I wanted him when I was at Sassuolo and I'm sure he is going to be a top player for us."
Dahoud began his career with Borussia Monchengladbach before moving to Dortmund in 2017.
He went on to make 141 appearances for this season's Bundesliga runners-up, although his game time was restricted after he had surgery on his shoulder last summer.
Brighton technical director David Weir said: "We're delighted to bring Mahmoud to the club, his quality and ability will really add to the options available to Roberto.
Manuel Lanzini will leave West Ham when his contract expires at the end of June.
The Argentinian midfielder joined the Hammers from United Arab Emirates side Al Jazira in the summer of 2015 and has made 226 appearances, scoring 32 goals.
Lanzini's most memorable moment was his long-range equaliser at Tottenham in 2020 as West Ham came from 3-0 down to snatch a 3-3 draw.
The 30-year-old has been linked with a return to Argentina and former club River Plate.
Manager David Moyes told the club website: "Manu is a fantastic professional, a really good lad, and whichever club he joins will have an excellent player on their hands.
"We are sorry to see him go, but he deserves the opportunity to play more regularly elsewhere, and we wish him well in his next adventure."
The east London club also confirmed the release of Ireland underage internationals Ademipo Odubeko and Armstrong Oko-Flex.
The Dublin-born duo have been capped up to Under-21 level for the Boys in Green but neither made a Premier League appearance during their time at West Ham amid stints on loan in the Championship as well as in League One in Odubeko's case.

Chris Smalling has signed a new two-year contract with Roma, the Italian club have announced.
Smalling, 33, joined Roma on a season-long loan from Manchester United in 2019 before signing a three-year deal to make the move permanent in 2020.
The former England centre-half told Roma's official website: "Choosing to remain at Roma was an easy decision to make.
"I'm playing the best football of my career here and my family and I have felt so welcome in this wonderful city from day one. What's more, this club is clearly taking great strides forward in all areas."
Smalling, who won two Premier League titles, the FA Cup, League Cup and the Europa League during 10 years with United, has made 143 appearances in all competitions for Roma, scoring 10 goals.
He has played a key role for the Serie A club, who won the inaugural Europa Conference League in 2022 under head coach Jose Mourinho and reached the Europa League final last month, losing to Sevilla on penalties.
Chelsea midfielder Tiemoue Bakayoko has been released following the expiry of his contract, the club has confirmed.
The 28-year-old was signed by former manager Antonio Conte shortly after the team's last Premier League title triumph in 2017 but had not played for the club since the end of his first season.
He has since spent time on loan at AC Milan - with whom he won the Serie A title in 2022 - Napoli and former club Monaco.
He arrived at Stamford Bridge in a £40 million (€46.9m) deal after helping Monaco to a surprise Ligue 1 title success, having been part of the team that also featured Kylian Mbappe and Bernardo Silva.
The side managed by Leonardo Jardin knocked out Manchester City in the last-16 of the Champions League en route to a semi-final exit to Juventus.
But the midfielder, who won one cap for France in 2017, failed to live up to the expectation that accompanied his arrival.
His most memorable moment in blue came during the 2018 FA Cup final when he played the full 90 minutes as Conte's side ran out 1-0 winners against Manchester United to lift the trophy.
Another 12 players to have come through Chelsea's academy have also left the club according to a list released by the Premier League, including goalkeeper Nathan Baxter who played 12 times in the Championship on loan at Hull last season.