The Old Lady have named ex- Italy head coach the veteran manager to take the helm for the rest of the term.
The experienced coach steps in for Igor Tudor, who was let go post the Lazio setback recently.
Tudor had joined the club 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 then moving on to lead the Italian national team, who had failed to qualify for the 2022 World Cup during Roberto Mancini's tenure.
He secured their spot in Euro 2024 exiting in the last 16 stage against Switzerland.
However, Spalletti was sacked by Italy in June after a World Cup qualifying defeat by Norway, with the Azzurri at risk of missing out on a third consecutive World Cup.
He has previously coached Inter Milan, Roma, and Udinese in Italy's top flight and secured two Russian Premier League titles with Zenit St Petersburg.
Juventus were temporarily led by Massimo Brambilla in the midweek 3-1 triumph over Udinese moving them to seventh position in the league - six points adrift of Napoli at the top after nine rounds.
Their Champions League campaign sees them in 25th place in the group stage, after recording one defeat and two ties in the initial three fixtures.