In soccer, fouls are considered to be any actions that violate the rules of the game or endanger the safety of other players.
Direct kicks are given to the opposing team when a major foul is committed. This includes striking, shoving, kicking, or taking any physical action to deliberately harm an opponent. Handling the ball, or intentionally touching the ball with your hands, will also result in a direct kick. The term "direct" means that it can result in a goal from where it is kicked, or the location of where the foul happened. If a foul is committed within the penalty box, it is referred to as a "Penalty Kick" and taken from a specific spot in front of the goal.
Indirect kicks are also taken from where the offense occurred, but can not be counted as a goal unless it is touched by another player before going in. These are given in cases of goalie violations, such as touching the ball with their hands outside of the goalie box or after it is passed back to them by a teammate. It is also used in less serious player violations that disrupt the game and other players involved.
Yellow cards are given to players as a warning for misconduct during the game. Some specific offenses include unsportsmanlike behavior, constant disruption of the game, or overall disrespecting the referee and laws of the game. Although they are a warning, two yellow cards can result in a red card.
Red cards are a stricter means of punishment used when harsher fouls are committed by players. This entails dangerous play that deliberately violates the opponent. Red cards mean that the player's action was serious and results in immediate removal from the game. Their team will then continue to play the rest of the game with one less player as removed players cannot be replaced by teammates.