Bayern Munich allowed the German international to move on from the Bundesliga champions after incoming boss Pep Guardiola made it clear that the 28-year-old was not part of his first-team plans.
But now Gomez - who scored 113 goals in 174 games for Bayern - has revealed that Carlo Ancelotti was interested in bringing him to the Bernabeu.
"Real Madrid boss Carlo Ancelotti was interested," the Germany international told Kicker. "I was flattered because my whole family are fans of Real Madrid.
"I thanked him for his interest, but I told my agent that I only wanted to go to Florence."
Whilst the lure of playing for Real Madrid and the chance to win major trophies was tempting, Gomez revealed his reasons for opting for Fiorentina over a move to the La Liga giants.
"For me it was clear - I wanted to again keep giving everything properly and not to just play half the games in a top team and obtain many titles.
"I want to play Sunday, Wednesday, Sunday."
Gomez became Fiorentina's eighth summer signing having landed, among others, goalkeeper Gustavo Munua; defender Marcos Alonso; and midfielders Massimo Ambrosini, Juan Cuadardo and Joaquin.