The Old Lady have appointed former Azzurri boss the veteran manager to take the helm until the end of the season.
The 66-year-old replaces his predecessor, who was sacked following the loss to Lazio on Sunday.
The former boss came on board in March as Thiago Motta's replacement but exited following a seven-month stint following a string of eight matches without a victory.
Under Spalletti, Napoli clinched the Serie A championship in 2022-23 then moving on to lead the Italian national team, after the team's failure to reach the 2022 World Cup during Roberto Mancini's tenure.
He helped them qualify for Euro 2024 where they were knocked out in the last 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's managerial career includes 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.
They are 25th in the league phase of the Champions League, after recording one defeat and two ties in the initial three fixtures.