
Austria’s Alaba, who can play in defence or midfield, was unveiled by Real wearing the No 4 worn for 16 seasons by Ramos.
“It’s a number that is a great motivation for me and one I want to honour,” Alaba said, adding Real told him four “was the only number available”.
“Ramos wore that number and became a leader. It’s something that’s in everyone’s head,” said Alaba.
“I want to be David Alaba,” he added.
Ramos, 35, has joined Paris St Germain.
He led Real to four Champions League and five La Liga titles.
Alaba, who is 29, won the Champions League twice and the Bundesliga 10 times in 12 seasons with Bayern Munich.
“It’s a dream come true for me, this is the best club in the world,” he said of the move to the Spanish capital.
Alaba said he had an “excellent relationship” with Carlo Ancelotti who was at Bayern for 18 months and has taken over as Madrid coach.