Juventus have announced Massimiliano Allegri will leave his post as manager at the end of the season.
There have been a succession of meetings between Allegri and the Juve board in the past few days over the ex-AC Milan boss' future with the decision having been taken that he will step down following their last match of the season away to Sampdoria on May 26.
"Massimiliano Allegri will not be on the Juventus bench for the 2019-2020 season," the statement on Juventus' website read.
Allegri took charge of the Bianconeri in July 2014, after Antonio Conte resigned only days into preseason training. He was an unpopular choice among Juve fans at the time, given his past at AC Milan, whom he had led to the Serie A title in 2011 before being sacked midway through the 2013-14 campaign.
He managed to win most Juve supporters over, however, by guiding the Old Lady to five straight Serie A titles, and leading them to the 2015 and 2017 Champions League finals, which they lost to Barcelona and Real Madrid respectively. Allegri also won the Coppa Italia in his first four seasons in Turin -- after Juventus had gone 20 years without winning Italy's main domestic cup competition -- but saw his side eliminated by Atalanta in this season's quarterfinals.
Last summer's signing of Cristiano Ronaldo was seen as a key to Juve finally lifting the Champions League for the first time since 1996 but, despite making a remarkable recovery from a 2-0 first leg defeat to eliminate Atletico Madrid in the round of 16, they were eliminated by Ajax in the quarterfinals, losing at that stage for the second season running following last year's defeat to Real Madrid.
Allegri, 51, turned down a move to Real last summer in a bid to win the Champions League with Juve but, with the Spanish club now back in the hands of Zinedine Zidane, Allegri's future could lie in the Premier League, where he has previously been linked with Chelsea.
Allegri and club president Agnelli will explain the reasons behind the parting of ways at a news conference on Saturday.
Juve will pick up their eighth straight Scudetto following their final home game of the season at the Allianz Stadium against Atalanta on Sunday.