Serena Williams beat good friend Caroline Wozniacki 7-5, 6-4 in an exhibition at Madison Square Garden on Tuesday.

The 21-time Grand Slam champion hasn't played a match since losing the Australian Open final Jan. 30, pulling out of two tournaments because of illness. She's scheduled to return to competition at Indian Wells this week.

There were plenty of mistakes — many punctuated by a shriek — for Williams early on Tuesday, but as she does so often, she somehow was still ahead at the end of the set. The game started to look more familiar: the court coverage, the well-rounded repertoire, the big serves to escape trouble.

Proving she was moving just fine, Williams earned her first set point when she sprinted to the net to run down a drop, and then immediately raced back to chase down a lob.

With her dogged defense, Wozniacki forced Williams into some long rallies. But as was the case in 10 of their 11 career meetings — which includes the 2014 U.S. Open final a few miles away — Williams' offense was too much.

In the first match of the BNP Paribas Showdown, 16th-ranked Gael Monfils of France beat two-time major champion Stan Wawrinka 7-6 (6), 6-3. Two games midway through the second set were played as mixed doubles — Williams and Wozniacki came onto the court in their warmups, and Williams teamed with Wawrinka and Wozniacki with Monfils.