In soccer, a yellow card is used by the referee to warn a player for unsportsmanlike conduct, dangerous play, or any other serious rule violation. It serves as a caution, and receiving two yellow cards in a game results in a red card, which means the player is sent off the field.