Allegri had a successful five-year spell during his time in charge of Juve before his exit in 2019.
Massimiliano Allegri has revealed he was contacted by LaLiga leaders Real Madrid over becoming their head coach two years ago.
The Italian said he was not interested in the job as he was eager to remain loyal to Serie A champions Juventus at the time.
This was in 2018 just after head coach Zinedine Zidane’s departure from Los Blancos.
Following short spells with Julen Lopetegui and Solari, the Spanish giants decided to reappoint Zidane in March 2019.
"Two years ago, there was contact, but nothing came of it because I had a contract with Juve," Allegri said to Marca about Madrid's interest.
"Two years ago, there was contact."
"Furthermore, I had a strong moral commitment to the club and its fans."
When the former AC Milan boss asked what he admires about Zidane’s work at the Santiago Bernabeu, he replied: "The strength he has had in finding the indispensable balance of a team so full of class and talent.
"For me, the positioning of Casemiro has been a tactical masterclass from Zizou."
Speaking of his future, Allegri said: "I've been charging my batteries [since leaving Juve] and enjoying time with my family and my city, Livorno, with my lifelong friends.
"I don't really care [if my next job is in Italy or abroad]. I'm looking for a club to share a project with and which has the ambition to compete to win."
"I'm looking for a club to share a project with."
Asked if he would like to coach a LaLiga club, Allegri said: "Who in their right mind would say no to this question? No one.
"There is more pleasure of playing in LaLiga, no matter the result. After conceding a goal, the team keeps playing as if nothing has happened.
"In Italy, on the other hand, there is much more love and attention for the details of the game and tactics. The brain almost always wins out over the heart, in general.
"[Italian football is more difficult] because of what I said before. The player doesn't have much freedom to enjoy themselves in a purely instinctive way and this sometimes makes it difficult."
Comments