The Serie A powerhouse have appointed previous Italian national team head coach the veteran manager as their manager for the rest of the term.
The experienced coach replaces Igor Tudor, who was sacked post the Lazio setback on Sunday.
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 prior to assuming the Italy role, after the team's failure to reach the 2022 World Cup during Roberto Mancini's tenure.
He helped them qualify for 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.
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 in the midweek 3-1 triumph over Udinese placing them seventh in the Serie A standings - 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.