Barcelona, Arsenaland Pierre-Emerick Aubameyangreached an agreement late on Monday night that will see the Gabon international join the Blaugrana on a free transfer.

For this reason, Barcelona were not obliged to register the 32-year-old striker by midnight on deadline day, when the January transfer window comes to an end.

The three parties reached an agreement after several hours of negotiations, with Barcelona president Joan Laporta and Aubameyang leaving the club’s premises at 00:35 CET (23:35 GMT).

Barcelona had managed to strike a deal with the player in advance and Aubameyang then arrived in Barcelona at noon on Monday to finalise the last details.

When everything indicated that Barcelonaand Arsenal would reach an agreement, reports in England stated that the Gunnerswere not willing to pay part of Aubameyang‘s salary.

Sporting director Mateu Alemany and technical director Jordi Cruyff negotiated with Arsenal at the club’s premises, but it took hours to strike a deal with the English club.

Laporta, who attended a Mundo Deportivo gala on Monday, revealed that the two parties were still negotiating despite reports in the English press before stating that Alemany had informed him that the deal was sealed.

Aubameyang passed his medical late at night and all that’s left is an official announcement from the Blaugrana.