What is the meaning of Two-legged_tie?

A competition between two teams which comprises two matches or “legs”, with each team as the home team in one leg. The winning team is usually determined by aggregate score, the sum of the scores of the two legs.

Source: wiktionary.org