Juventus have named ex- Azzurri manager the veteran manager to lead the team for the remainder of the campaign.
The experienced coach replaces Igor Tudor, who was sacked post the Lazio setback last weekend.
Tudor arrived at the club in March as Thiago Motta's replacement 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 under former boss Roberto Mancini.
He helped them qualify for Euro 2024 exiting in the last 16 stage against Switzerland.
However, Spalletti was sacked by Italy in June post a qualifying defeat against Norway, as Italy faced the possibility of not making a third World Cup in a row.
Spalletti's managerial career includes Inter Milan, Roma, and Udinese in Serie A and won the Russian Premier League twice with Zenit St Petersburg.
Juventus were temporarily led by Massimo Brambilla for their 3-1 win against Udinese on Wednesday moving them to seventh position in the league - six points adrift of Napoli at the top after nine rounds.
In the Champions League, they sit 25th in the league phase, with one loss and two draws in their first three games.