Rangers will host Real Madrid in a pre-season friendly.
The 13-times European champions will visit Ibrox on July 25, six days before Rangers open their title defence against Livingston.
Carlo Ancelotti's side will also serve as preparation for Rangers' Champions League qualifying campaign, which begins on August 3-4.
Real have visited Ibrox once before, in the 1963-64 European Cup, beating Rangers 1-0 courtesy of a late Ferenc Puskas goal before a 6-0 home win in Spain.