Lionel Messi has signed a new contract at Barcelona through to the end of the 2020/21 season, the club has confirmed.

The new deal includes a staggering €700m buy-out clause which looks set to end all speculation over a future move away from the Nou Camp.

By the end of the 2020/21 season, when Messi's new contract is set to expire, the Argentine will have spent a total of 17 years with Barcelona's first team.

Messi now looks set to end his career at Barcelona (Getty)

A renewal was agreed between player and club in July but it is only now that Messi has put pen to paper on the contract.

Throughout his career at Barça the 30-year-old has scored 523 goals in 602 games and is both the Club’s and La Liga’s all-time leading goalscorer.