Barcelona feared the move was dead earlier on transfer deadline day, even though Aubameyang had flown to Spain.
He had also been linked with a switch to Saudi Arabian side Al-Nassr.
The former Arsenal captain’s departure will save the Gunners – who bought him for £56m from Borussia Dortmund in 2018 – about £15m in wages. But it leaves boss Mikel Arteta with just Alexandre Lacazette and Eddie Nketiah as his forwards for the remainder of the season.
Then, at 6pm, it looked like the move was not going to happen and the financial differences between the two clubs were too big.
This whole affair has been relayed to us almost minute-by-minute by the Barca president Joan Laporta, who is at a Mundo Deportivo awards event. Laporta is in the business of giving hope to the fans and has been describing the situation as it unfolds.
It looked like the transfer wasn’t going to happen because the difference in what Barca could afford in wages and the percentage of Aubameyang’s wages, that Arsenal were prepared to pay, was too great.
Barcelona had 2m euros (£1.6m) in wages to pay and Aubameyang was happy to accept any payment In the end. Then Arsenal accepted a free transfer. That means the Gabon forward may just get 2m euros this season – rather than the circa 9m euros (£7.5m) he was due at Arsenal – and more later.
Our coverage of the Gunners is bigger and better than ever before – here’s everything you need to know to make sure you never miss a moment