The Serie A powerhouse have named previous Italy manager Spalletti to lead the team until the end of the season.
The experienced coach steps in for his predecessor, who was dismissed post the Lazio setback on Sunday.
The former boss came on board in March as Thiago Motta's replacement but departed after seven months following a string of eight matches without a victory.
Under Spalletti, Napoli clinched the Serie A championship in 2022-23 prior to assuming the Italy role, which missed out on the 2022 World Cup during Roberto Mancini's tenure.
Under his guidance, they made it to Euro 2024 but were eliminated in the round of 16 by Switzerland.
Nonetheless, Italy dismissed Spalletti 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.
Spalletti has also managed Inter Milan, Roma and Udinese in Serie A and won the Russian Premier League twice with Zenit St Petersburg.
Juventus were temporarily led by Massimo Brambilla during the 3-1 victory over Udinese on Wednesday which left them seventh in Serie A - six points behind leaders Napoli after nine games.
In the Champions League, they sit 25th in the league phase, with one loss and two draws in their first three games.