Barcelona have confirmed the signing of Pierre-Emerick Aubameyang on a free transfer from Arsenal.
The 32-year-old Gabon striker signed a contract on Monday evening although it was not announced until Wednesday.
Aubameyang's deal runs until 30 June 2025 and includes an option to agree a departure in June 2023, plus a buyout clause of 100 million euros (£83.4m).
Barcelona feared the move was dead at one point on transfer deadline day despite Aubameyang flying to Spain.
The former Borussia Dortmund striker, who scored 92 goals in 163 games for Arsenal, had not played for the Gunners following a disciplinary breach in December.
The forward flew to Spain on Monday and was pictured training with the Spanish club on Tuesday.
Arsenal signed Aubameyang for £56m in January 2018 but his departure on a free transfer comes after he was stripped of the captaincy following a disciplinary issue.
He had previously been dropped in March and missed the win over north London rivals Tottenham because of a "breach of pre-match protocol".
His move to Barcelona will save the Gunners about £15m in wages - but it leaves manager Mikel Arteta with Alexandre Lacazette and Eddie Nketiah as his only central strikers for the remainder of the season.
In a message posted on social media on Tuesday, Aubameyang thanked Arsenal's fans for their support and said it "hurt" to leave in such circumstances.
"We went through ups and downs together and your support meant everything to me," he said.
"I have always been 100% focused and committed on doing everything I can for this club which is why leaving without a real goodbye hurts - but that is football.
"I'm sad I did not get the chance to help my team-mates in the last few weeks, but I have nothing but respect for this club and truly wish all my guys and the fans all the best and many successful years in the future!"