The Old Lady have chosen former Italy boss the veteran manager as their manager for the rest of the term.
The experienced coach steps in for his predecessor, 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 before taking charge of Italy, 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 post a qualifying defeat against Norway, putting Italy in danger of missing a third straight 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 served as interim manager for Juventus for their 3-1 win against Udinese on Wednesday which left them seventh in Serie A - 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.