Each team has two innings to score runs, with no limit on how long an innings may last. The teams take their innings in turn.
The runs the teams score in both their innings are added together, and the one with the most wins.
A Test match can last a maximum of five days, and for a team to win, their opponents must have had two complete innings.
If neither team completes two innings during the game it is a draw. If the two teams finish with exactly the same number of runs, the game is a tie, which is different to a draw.