The Old Lady have appointed ex- Italian national team boss the veteran manager to take the helm for the remainder of the campaign.
The experienced coach takes over from the Croatian manager, who was sacked after the Serie A side's defeat by Lazio on Sunday.
The former boss came on board in March as Thiago Motta's replacement but departed after seven months at the end of an eight-match winless run.
Spalletti guided Napoli to the Serie A crown in 2022-23 then moving on to lead the Italian national team, after the team's failure to reach the 2022 World Cup under former boss Roberto Mancini.
He helped them qualify for Euro 2024 exiting in the last 16 stage against Switzerland.
However, Spalletti was sacked by Italy in June post a qualifying defeat against Norway, putting Italy in danger of missing a third straight World Cup.
Spalletti's managerial career includes Inter Milan, Roma, and Udinese in Serie A and won the Russian Premier League twice with 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 - 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.