This arises when a pawn uses its initial-move option to advance two squares instead of one, and in so doing passes over a square that is attacked by an enemy pawn.
This happens when a pawn uses its first move option to go two squares instead of one. It passes over a square that is attacked by an enemy pawn.