Massimiliano Allegri says he had contact with Real Madrid over becoming their head coach two years ago, but wanted to stay loyal to Juventus.
The former Milan boss spent five successful years in charge of Juve prior to his exit at the end of last season.
After Zinedine Zidane left Madrid following the 2017-18 campaign, the club had short spells with Julen Lopetegui and Santiago Solari in charge.
Editors' Picks
Allegri was one of the other options pursued by the club and the Italian thanked Madrid president Florentino Perez for his interest at the time.