Barcelona have signed midfielder Miralem Pjanic from Juventus in a deal worth €65m just hours after confirming Arthur Melo had moved in the opposite direction.

The Spanish champions had earlier announced that Brazil international Arthur had joined Juventus in a deal worth an initial €72m. 

Bosnia and Herzegovina international Pjanic's signing was also confirmed on the same day that Juve club stalwarts Gianluigi Buffon and Giorgio Chiellini signed new one-year deals to remain at the Allianz Stadium.

Barca confirmed both Pjanic and Arthur will join their respective new clubs at the end of the 2019/20 season.

Pjanic began his career at French club Metz and after a spell at Lyon he moved on to Roma, where he made 200 appearances in five seasons before signing for Juventus in 2016.

He won three Serie A titles, two Coppa Italia crowns and one Italian Super Cup with Juventus.

Arthur joined the reigning La Liga champions from Gremio in 2018 and has gone on to make 72 appearances for the club, winning the league title and the Spanish Super Cup in his first season.