As a warm-up, Federer teamed up with Gates to take on NBC News’ Today co-anchor Savannah Guthrie and Jack Sock, the top-ranked American on the ATP Tour, in a friendly one-set doubles match. Federer and Gates came out on top, 6-3.

“Roger and I are 1-0 as a doubles pair after last year’s event, so I’m hoping we can keep the streak alive while raising money for an important cause,” Gates said in a statement before the event. “Roger might have a few more Grand Slam titles than I do, but we share a belief that all children deserve a world-class education. His Match for Africa events are a fun way to help make that happen.”

Tennis pros Sock and Federer then faced off in a best-of-three-sets singles exhibition match, which Federer won, 7-6 (9), 6-4.

It was the fifth Match for Africa event for the Roger Federer Foundation. The group said before last night's event it had given $36 million to support the education of an estimated 850,000 children in six African countries as well as in Switzerland, Federer’s home country.