In match racing there are usually four legs, although some events - such as the 2013 America's Cup that has five - may set a different course. Two of the legs are upwind, or sailing against the wind, and the other two legs are downwind, or sailing with the wind. In the first leg the boats are tacking against the wind in order to get to the windward mark the fastest without being penalized while also trying to get the other boats penalized.