Most tournaments are in a "best of 3" format. Meaning that the first player to win 2 out of the 3 sets, wins the match. Except for Grand Slams where the men play "best of 5" matches, where the first player to win 3 sets, wins the match.