The defender has already spent nine years at Santiago Bernabeu having signed from Sevilla in 2005.
Champions League winner Ramos said: "I feel privileged to participate in the world's best team.
"I hope to be here for many years and retire here.
"From the first day, I noticed the affection of the fans and I will always be grateful.
"It's a dream fulfilled."
For the big stories and the banter follow us on Twitter: @tribalfootball