En passant opens a mating file

The en-passant capture removes the pawn from h5 and opens the rook’s h-file, producing a discovered checkmate.

The position

White to move.

  1. 1.hxg6#

Why does this work?

hxg6 en passant moves the white pawn off h5 and removes Black’s pawn from g5. Vacating h5 opens the rook on h1 all the way to the king on h8, so the capture delivers a discovered rook check.

The bishop on c4 controls g8 and the king on f6 controls g7. Black cannot capture the rook, block the h-file, or move to either neighboring square. The FEN’s g6 en-passant field records that ...g7–g5 was the immediately preceding move.

En passant can alter two files in one move because the captured pawn disappears from a different square than the capturing pawn occupies. When it is available, redraw every rook and bishop line after both pawns have changed.

Two pawns move, one line opens

After 1.hxg6 en passant the white pawn lands on g6 and Black’s pawn disappears from g5. The h5-square, where White’s pawn stood, is now empty, so the rook on h1 checks the king on h8 straight up the file. The bishop on c4 covers g8, the king on f6 covers g7, and nothing can block or capture. Mate.

One move only

Stockfish 18 finds no other mate in one; 1.Kg6 and 1.Bd3 mate in three. The en passant capture is possible on this move only, because Black has just played ...g7-g5, which is what the position’s en passant square records. One move later the right is gone, and so is the mate in one.

What else was playable?

Stockfish 18 at the starting position:

  • 1.hxg6#: Mate, en passant.
  • 1.Kg6: Mate in three.
  • 1.Bd3: Mate in three.

What to take away

  • After an en passant capture, redraw the lines through both squares that changed.
  • En passant is available for one move only; check it whenever an enemy pawn has just made a double step next to yours.

Want a looping version of a position like this? Create an animated chess GIF with the Chess GIF Maker.

Sources