Juventus have chosen ex- Italian national team head coach the veteran manager as their manager for the rest of the term.
The 66-year-old takes over from Igor Tudor, who was sacked post the Lazio setback last weekend.
Tudor arrived at the club in March filling the shoes of Thiago Motta but left after seven months following a string of eight matches without a victory.
Spalletti guided Napoli to the Serie A crown in 2022-23 prior to assuming the Italy role, which missed out on the 2022 World Cup during Roberto Mancini's tenure.
He helped them qualify for Euro 2024 where they were knocked out in the last 16 by Switzerland.
Nonetheless, Italy dismissed Spalletti in June post a qualifying defeat against Norway, with the Azzurri at risk of missing out on a third consecutive World Cup.
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 for their 3-1 win against Udinese on Wednesday moving them to seventh position in the league - trailing leaders Napoli by six points after nine matches.
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.