Barcelona have long been locked in talks with the Italian side, but have managed to beat clubs such as Manchester City, Manchester United and Chelsea in the race to sign the winger.
Sanchez has signed a five-year contract with Barcelona.
Barcelona have agreed to pay an initial €26million with an additional €11.5million in add-ons for the highly-rated midfielder.