The Old Lady have chosen former Italian national team manager Spalletti to take the helm until the end of the season.
The experienced coach replaces Igor Tudor, who was sacked following the loss to Lazio recently.
Tudor arrived at the club in March filling the shoes of Thiago Motta but left after seven months after an eight-game winless streak.
Under Spalletti, Napoli clinched the Serie A championship in 2022-23 before taking charge of Italy, which missed out on the 2022 World Cup with Mancini at the helm.
He secured their spot in Euro 2024 but were eliminated in the round of 16 by Switzerland.
However, Spalletti was sacked by Italy in June after a World Cup qualifying defeat by Norway, as Italy faced the possibility of not making a third World Cup in a row.
He has previously coached Inter Milan, Roma, and Udinese in Italy's top flight and lifted the Russian league trophy twice while at Zenit St Petersburg.
Juventus were temporarily led by Massimo Brambilla during the 3-1 victory over Udinese on Wednesday moving them to seventh position in the league - trailing leaders Napoli by six points after nine matches.
In the Champions League, they sit 25th in the league phase, after recording one defeat and two ties in the initial three fixtures.