
Why a yellow card is given
The referee can caution a player for offenses such as reckless play, delaying a restart, dissent, persistent fouling, entering or leaving the field without permission, failing to respect the required distance at a restart, or other unsporting behavior. A substitute or team official can also be cautioned.

What happens after the card
The player normally stays in the match. The referee records the person, offense, and time of the caution. If that person receives a second yellow card in the same match, the referee shows a second yellow followed by a red card. An on-field player who is sent off cannot be replaced, so the team continues with one fewer player.
Reckless versus careless play
A careless challenge is generally a foul without a card. A reckless challenge disregards the danger or consequences to an opponent and normally earns a yellow card. A challenge using excessive force or endangering an opponent can instead be serious foul play and a direct red card.
Do yellow cards carry into later matches?
Competition rules decide accumulation and suspension. A league or tournament may suspend a player after a set number of cautions across multiple matches. The threshold, reset dates, and whether cards carry into another round vary by competition.
Bottom line
A yellow card is more than a warning from the referee. It is a formally recorded caution, and a second caution in the same match means dismissal.
