The Serie A powerhouse have appointed previous Italian national team manager the veteran manager as their manager until the end of the season.
The experienced coach takes over from Igor Tudor, who was sacked post the Lazio setback recently.
The former boss came on board in March to replace Thiago Motta but exited following a seven-month stint at the end of an eight-match winless run.
Spalletti guided Napoli to the Serie A crown in 2022-23 before taking charge of Italy, which missed out on the 2022 World Cup during Roberto Mancini's tenure.
He secured their spot in 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, putting Italy in danger of missing a third straight World Cup.
Spalletti has also managed Inter Milan, Roma and Udinese in Serie A and secured two Russian Premier League titles with Zenit St Petersburg.
Massimo Brambilla took interim charge of Juventus during the 3-1 victory over Udinese on Wednesday moving them to seventh position in the league - six points adrift of Napoli at the top after nine rounds.
In the Champions League, they sit 25th in the league phase, after recording one defeat and two ties in the initial three fixtures.