Marchisio sustained another knee injury during the first match of the 2017–18 season on 19 August against Cagliari. He did not make it to the starting line up until 5 November, in a 2–1 home win over Benevento. Just before the start of the 2018–19 season, on 17 August 2018, it was announced that Marchisio had left Juventus following "the agreed termination" of his contract, which ended the 25 years Marchisio spent in the Juventus system. In total, he made 389 appearances for the club, scoring 37 goals, providing 43 assists, and picking up only one red card.