The Old Lady have chosen ex- Italy boss Spalletti to lead the team until the end of the season.
Spalletti steps in for his predecessor, who was dismissed after the Serie A side's defeat by Lazio recently.
The former boss came on board in March filling the shoes of Thiago Motta but departed after seven months at the end of an eight-match winless run.
Spalletti led Napoli to the Serie A title in 2022-23 before taking charge of Italy, which missed out on the 2022 World Cup under former boss Roberto Mancini.
Under his guidance, they made it to Euro 2024 but were eliminated in the round of 16 by Switzerland.
However, Spalletti was sacked by Italy in June post a qualifying defeat against Norway, with the Azzurri at risk of missing out on a third consecutive World Cup.
Spalletti has also managed Inter Milan, Roma and Udinese in Serie A and secured two Russian Premier League titles with Zenit St Petersburg.
Juventus were temporarily led by Massimo Brambilla for their 3-1 win against Udinese on Wednesday placing them seventh in the Serie A standings - trailing leaders Napoli by six points after nine matches.
They are 25th in the league phase of the Champions League, after recording one defeat and two ties in the initial three fixtures.