Lionel Messi has agreed to stay at Barcelona on a deal until 2026 that includes reducing his wages to half of his previous salary.
The announcement is dependent on player departures that will allow Barca to fund the Argentina captain's wages.
Messi, 34, was a free agent after his contract - that reportedly paid him £123m a season - expired on 30 June.
He is on holiday after winning the Copa America and the finer details of the contract are yet to be finalised.
Re-signing Messi was the principal summer target of new chairman Joan Laporta.
Barca are also looking at a swap deal involving forward Antoine Griezmann and Atletico Madrid midfielder Saul Niguez, with the idea of reducing the wage bill.
Fringe players such as Junior Firpo, Jean-Clair Todibo and Carles Alena have already been sold to free up budget but other big-name departures will also need to take place.
Messi had been linked with moves to Paris St-Germain and Manchester City, where he would be reunited with his former boss at Barcelona Pep Guardiola, as well as America's Major League Soccer, which he has previously considered experiencing.
Messi is Barcelona's record scorer with 672 goals and has won 10 La Liga titles, four Champions Leagues, seven Copa del Reys as well as claiming the Ballon d'Or on a record six occasions.