The Portuguese centre-back says his side had a bad image under the current-Manchester United manager and is happy with life under Zinedine Zidane.
Real Madrid defender Pepe has admitted he was relieved to see Jose Mourinho’s time at the club come to an end because they were so strongly hated.
Mourinho joined Madrid in 2010 after a successful spell with Inter, winning La Liga in 2011-2012 but falling short in the Champions League.
The Portuguese exited the Santiago Bernabeu after making enemies inside and outside the club, having become embroiled in a bitter feud with then-Barcelona coach Pep Guardiola.
“Under Mourinho, people hated us when we got out there on the pitch,” Brazilian-born Portugal international Pepe told Cadena Ser.
“It lasted three years and thank God it went very quick.
“Things changed when Carlo Ancelotti came in, you could see people started treating us different again.”
Pepe endured a difficult relationship with Mourinho, but the centre-back is loving life again under Zinedine Zidane, who took over from Rafael Benitez in January.
“What happened with Mourinho is in the past now. I was strong and got over it. I maintained my high level at Madrid,” he said.
“Mourinho and Zidane are very different, one could say they are opposites. But it’s not like one is bad and the other is good.
“Mourinho has a lot of experience as a coach, with great clubs and players. Zidane has only just started in La Liga last year. But he has played at the highest level himself and always knows what’s expected on the pitch.
“Zidane has been a player and knows what we think. He had a brilliant career at Madrid, so understands what the pressure is like here.
“We need to try to enjoy these moments because they’ll end one day, and he’s given us all a vote of confidence by not signing new players,” he added, referring to a quiet close-season in the transfer market for the European champions.
Madrid, who defeated Atletico Madrid on penalties in the final of the last season’s Champions League, begin their defence of the competition at home to Sporting in Group F on Wednesday.