Swimmers compete in races, using different strokes to cover distances in water as quickly as possible.