The Serie A powerhouse have named previous Italian national team manager the veteran manager as their manager until the end of the season.
The 66-year-old takes over from Igor Tudor, who was dismissed post the Lazio setback recently.
The former boss came on board in March as Thiago Motta's replacement but left after seven months at the end of an eight-match winless run.
Spalletti led Napoli to the Serie A title in 2022-23 then moving on to lead the Italian national team, who had failed to qualify for the 2022 World Cup during Roberto Mancini's tenure.
Under his guidance, they made it to Euro 2024 exiting in the last 16 stage against Switzerland.
Nonetheless, Italy dismissed Spalletti in June following a loss to Norway in World Cup qualifying, with the Azzurri at risk of missing out on a third consecutive World Cup.
Spalletti's managerial career includes Inter Milan, Roma, and Udinese in Serie A and secured two Russian Premier League titles with Zenit St Petersburg.
Massimo Brambilla served as interim manager for Juventus during the 3-1 victory over Udinese on Wednesday placing them seventh in the Serie A standings - six points behind leaders Napoli after nine games.
They are 25th in the league phase of the Champions League, having lost once and drawn twice in their opening three matches.