The Spain defender, 34, joined Madrid's youth academy aged 10 and made 364 appearances following his senior debut in 2012.
His final appearance was the 2-0 Champions League final win over Borussia Dortmund earlier this month that saw him become one of five players to win six European Cups with the club.
#nacho