The Serie A powerhouse have chosen previous Italian national team head coach the veteran manager to lead the team for the rest of the term.
Spalletti steps in for Igor Tudor, who was sacked following the loss to Lazio last weekend.
Tudor arrived at the club in March to replace Thiago Motta but left after seven months after an eight-game winless streak.
Spalletti led Napoli to the Serie A title in 2022-23 then moving on to lead the Italian national team, 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 post a qualifying defeat against Norway, as Italy faced the possibility of not making a third World Cup in a row.
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 during the 3-1 victory over Udinese on Wednesday moving them to seventh position in the league - 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.