Federer and Borg will face John McEnroe and either Rafael Nadal or James Blake at The Venetian Macau Tennis Showdown on Nov. 20 in a Tour of Champions event.
Federer and Borg each won five consecutive Wimbledon singles titles. Nadal ended Federer's run in an epic five-set match this month and McEnroe snapped Borg's streak in 1981.
McEnroe's partner will come from the country that loses the Davis Cup semifinal between the U.S. and Spain in September.
The showdown will start with a one-set match between Borg and McEnroe, followed by a best-of-three sets between Federer and Nadal or Blake.
The two-set doubles match will be decided by a 10-point tiebreaker, if necessary.
ALSO ON THIS STORY Discuss: Sound off on tennis message boards
Sharks ink Rob Blake for $5 million
Finalists Federer, Nadal know each other well
Blake would welcome trade out of town