The Serie A powerhouse have named previous Italian national team head coach the veteran manager to lead the team for the remainder of the campaign.
Spalletti takes over from Igor Tudor, who was sacked post the Lazio setback recently.
Tudor arrived at the club in March filling the shoes of Thiago Motta but exited following a seven-month stint following a string of eight matches without a victory.
Spalletti led Napoli to the Serie A title in 2022-23 before taking charge of Italy, after the team's failure to reach 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.
Yet, the Italian FA let Spalletti go in June following a loss to Norway in World Cup qualifying, putting Italy in danger of missing a third straight World Cup.
He has previously coached Inter Milan, Roma, and Udinese in Italy's top flight and lifted the Russian league trophy twice while at Zenit St Petersburg.
Juventus were temporarily led by Massimo Brambilla 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.