Rodrygo will formally join Real next June.
He said, "I am very proud to have signed for the greatest team in the world.
"I want to be ready as soon as possible to make a big impact."
"It would have been a pleasure to play with him," Rodrygo continued.
"He made history at Real Madrid and I want to follow in his footsteps."