The moves

White moves the f-pawn and the g-pawn, the two pawns that shield the king along the diagonal from h4 to e1. Black's queen slides straight through.

♜︎♞︎♝︎♚︎♝︎♞︎♜︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♛︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♜︎♞︎♝︎♛︎♚︎♝︎♞︎♜︎
1.f3 e5 2.g4 Qh4#Mate on move two. No white piece can capture the queen or block the diagonal, and the king has no square.

The order of White's pawn moves does not matter, and neither does Black's first move, as long as it opens the queen's diagonal. 1.f4 e6 2.g4 Qh4# and 1.g4 e5 2.f3 Qh4# reach the same picture.

Can White do it to Black?

Yes, one move later, because White moves first. If Black plays 1...g5 and 2...f6 against 1.e4 and 2.d4, White mates with 3.Qh5#.

♜︎♞︎♝︎♛︎♚︎♝︎♞︎♜︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♛︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♜︎♞︎♝︎♚︎♝︎♞︎♜︎
1.e4 g5 2.d4 f6 3.Qh5#The mirror image. The queen on h5 mates along the same diagonal.

The lesson

Pawns in front of your king are a shield, and each one you push leaves a hole behind it. Weakening the e1-h4 or e8-h5 diagonal early is dangerous even when it does not lose on the spot. The same pattern appears in the Fishing Pole Trap, where Black attacks a king whose pawns have been pulled forward.

Common questions

What is the fastest checkmate in chess?

Fool's Mate. It ends on Black's second move, and no game can reach checkmate sooner.

Does Fool's Mate happen in real games?

Almost never between experienced players, since White has to make two very poor pawn moves in a row. Complete beginners do occasionally stumble into it.