Beckham and the Galaxy will face Real on July 16 at the Los Angeles Memorial Coliseum. An injury that ended Beckham's World Cup dreams also kept him from playing last year in Real's 3-2 victory over the Galaxy.
"We are very excited to once again welcome back Real Madrid," said Galaxy president Tom Payne.
"The excitement for this rematch will surely capture the attention of all sports fans in Southern California."
Real defeated the Galaxy 2-0 in 2005, two years before Beckham signed his five-year deal to join Los Angeles after his Madrid deal expired.
What the stars mean:
★ Poor ★ ★ Promising ★★★ Good ★★★★ Very good ★★★★★ Exceptional