Manchester United have signed Alexis Sanchez from Arsenal, in a swap deal with midfielder Henrikh Mkhitaryan.

Chile forward Sanchez, 29, who almost joined Manchester City last summer, has signed a four-and-a-half-year deal.

City decided earlier this month that they would not pursue their interest in him as they felt making him their best-paid player may affect team morale.

Mkhitaryan, 29, moves in the opposite direction to Sanchez after scoring 13 goals in 63 appearances for United.

The Armenia international moved to Old Trafford from Borussia Dortmund for £26.3m in July 2016.

He has made only 10 Premier League starts this season, and it is understood there was a breakdown in trust between him and Mourinho.

United’s signing of Sanchez, who will wear the number seven shirt, was announced on the club’s Twitter account with him playing ‘Glory, Glory Man Utd’ on a piano.

He has scored 80 goals for the Gunners since joining from Barcelona for £30m in July 2014, and was last season’s top scorer with 30 goals in all competitions.

“I am thrilled to be joining the biggest club in the world,” said Sanchez. “The chance to play in this historic stadium and to work with Jose Mourinho was something I could not turn down.

“I am very proud to be the first Chilean player ever to play for United’s first team, and I hope I can show our fans all around the world why the club wanted to bring me here.”

Sanchez almost teamed up with former Barcelona boss Pep Guardiola in a £60m move last summer, but his deadline-day transfer collapsed when Arsenal failed to sign Monaco midfielder Thomas Lemar.

Since that move did not materialise, Sanchez has had less of an impact, scoring 0.37 goals per game compared to 0.63 last season, with several pundits commenting on his on-field demeanour.

Former Gunners striker Ian Wright said in December that Sanchez looked as though he had “clocked off”.

Arsenal manager Arsene Wenger denied there was a rift between the Chilean and his team-mates, but admitted the uncertainty over his future has affected team morale.

With Sanchez’s contract at Arsenal due to expire at the end of the season – when he would be available on a free transfer – Mourinho has made him his first signing of the January transfer window.

The Portuguese said: “Alexis is one of the best attacking players in the world and he will complete our very young and talented group of attacking players.

“He will bring his ambition, drive and personality – qualities that make a Manchester United player.”

Mkhitaryan, who has scored once and contributed five assists in 15 Premier League appearances this season, joined United when Mourinho pipped Wenger to sign him.

His last appearance was in the FA Cup third-round win over Derby on 5 January, and he was left out of subsequent Premier League matches against Stoke and Burnley.

“I’m very happy that we could finish this deal,” said Mkhitaryan. “It’s a dream come true because I’ve always dreamed of playing for Arsenal. Now I’m here, I’ll do my best for this club to create history.”

Mkhitaryan made a modest start to his United career and did not start a Premier League game in almost three months after he was substituted at half-time during his full debut against Manchester City.

Yet his form improved during the second half of last season and he scored as United beat Ajax in the Europa League final in Stockholm in May.

But, in November, Mourinho said Mkhitaryan’s performances had been “decreasing step by step”.

Before he moved to Old Trafford, the Armenia captain was the 2015-16 Bundesliga player of the season, and scored 23 goals in all competitions.

Wenger said: “Henrikh is a very complete player. He creates chances, he defends well, he can absorb distances and he’s very committed as well. I must say he’s a player who has all the attributes.”

Get more stories like this on Twitter & Facebook

AD: To get thousands of free final year project topics and materials sorted by subject to help with your research [click here]