Max Allegri has made a return to Juventus after two seasons away.
He was let go by the club in 2019 after they sought a change of style and was replaced with Maurizio Sarri.
His successor delivered Serie A to the club again, but he was fired and replaced with Andrea Pirlo at the start of this season.
Pirlo has presided over their worst campaign in a decade and they have now halted the experiment with the former midfielder to bring back Allegri.
He looked set to become the next manager of Real Madrid and was waiting for the Spanish side to make their move.
However, Juve has been more decisive and would now have him as their latest manager for the next four seasons.
Juventus announced on their official website after the sacking of club legend Pirlo.