Juventus have chosen ex- Azzurri manager the veteran manager as their manager until the end of the season.
The experienced coach takes over from Igor Tudor, who was sacked following the loss to Lazio last weekend.
Tudor had joined 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 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.
Nonetheless, Italy dismissed Spalletti in June following a loss to Norway in World Cup qualifying, with the Azzurri at risk of missing out on a third consecutive World Cup.
Spalletti's managerial career includes Inter Milan, Roma, and Udinese in Serie A and won the Russian Premier League twice with Zenit St Petersburg.
Massimo Brambilla took interim charge of Juventus for their 3-1 win against Udinese on Wednesday which left them seventh in Serie A - six points adrift of Napoli at the top after nine rounds.
Their Champions League campaign sees them in 25th place in the group stage, with one loss and two draws in their first three games.