The Old Lady have appointed previous Azzurri manager the veteran manager to take the helm for the rest of the term.
The 66-year-old takes over from Igor Tudor, who was dismissed post the Lazio setback last weekend.
The former boss came on board in March to replace Thiago Motta but left after seven months following a string of eight matches without a victory.
Spalletti guided Napoli to the Serie A crown in 2022-23 prior to assuming the Italy role, 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.
Nonetheless, Italy dismissed Spalletti 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 lifted the Russian league trophy twice while at Zenit St Petersburg.
Massimo Brambilla took interim charge of Juventus during the 3-1 victory over Udinese on Wednesday which left them seventh in Serie A - six points behind leaders Napoli after nine games.
Their Champions League campaign sees them in 25th place in the group stage, having lost once and drawn twice in their opening three matches.