← All lessons

Legal’s Mate: The Chess Trap Where White Gives Up the Queen

November 8, 2026

Philidor Defense (C41) · Legal's Mate · ????

Show PGN
[Event "Legal's Mate"]
[Site "?"]
[Date "????.??.??"]
[White "?"]
[Black "?"]
[Result "1-0"]

1. e4 e5 2. Nf3 d6 3. Bc4 Bg4 4. Nc3 g6 5. Nxe5 Bxd1 6. Bxf7+ Ke7 7. Nd5# 1-0

In Legal’s Mate, White leaves the queen hanging on move five, and the player who takes it is checkmated two moves later by a bishop and two knights. It is a classic trap, and it still catches players today.

The video shows the trap. This article covers what the video had no time for: where Black really went wrong (it isn’t only the queen capture), what happens if Black declines the gift, why the final position is mate, and a position to solve yourself.

The opening: Philidor Defense

The game starts 1. e4 e5 2. Nf3 d6, the Philidor Defense (ECO C41). Black defends the e5 pawn with a pawn instead of a knight. It is solid but a little passive: after 2… d6 the engine rates White about two-thirds of a pawn better, and its own choice was 2… Nc6.

White answers 3. Bc4 (the engine preferred 3. d4), aiming at f7, the square next to Black’s king that only the king defends. Up to here every move is in the opening book. The game leaves it with Black’s next move, 3… Bg4.

The pin: 3… Bg4

Bishop to g4 pins White’s knight on f3 to the queen on d1: if the knight moves, the queen can be taken. It looks active, but the engine grades it an inaccuracy and preferred 3… Be7, which develops and clears the way to castle.

The catch is that this is only a *relative* pin. The knight is allowed to move; it just costs the queen. As this game shows, sometimes the queen is a price worth paying.

The turning point: 4… g6

Most players remember Legal’s Mate for the queen capture, but the engine says the game turned one move earlier. Before 4… g6, White was about half a pawn better. After it, White is more than two pawns better, the biggest swing in the game before the mating attack.

The reason is 5. Nxe5, the engine’s best move in the new position. The e5 pawn has a single defender, the pawn on d6, and 4… g6 does nothing about it. The engine’s choice was 4… Nc6, which adds a second defender to e5 and develops a piece.

The sacrifice: 5. Nxe5!

Knight takes e5 is graded brilliant. It is a real sacrifice, because the queen on d1 is left hanging, and it is the engine’s best move by a wide margin: its next best option is worth less than half as much.

After 5. Nxe5, three pieces are en prise at once. White’s knight on e5 can be taken by the d6 pawn. White’s queen on d1 can be taken by the bishop. And Black’s own bishop on g4 is now attacked twice, by the knight and by the queen, whose diagonal opened when the knight left f3. Black has to choose, and only one choice keeps the game going.

What if Black doesn’t take the queen?

Black’s best reply was 5… dxe5, taking the knight. The engine’s line goes 5… dxe5 6. Qxg4 Nc6 7. Qf3 Qd7.

5… dxe5 removes the knight, so there is no mate. 6. Qxg4: White’s queen takes the bishop on g4. White has given a knight and won a bishop and a pawn, so White is a clean pawn up. 6… Nc6 7. Qf3: Black develops, and White’s queen steps back to f3, still aiming at f7. 7… Qd7: Black’s queen comes out and the game goes on.

The engine still rates White as clearly better here, by more than two and a half pawns, so the trap pays off even when it is declined. But a pawn down with a game to play is a very different result from being mated on move seven.

White had another idea one move earlier: the engine’s choice at move 4 was 4. h3 instead of 4. Nc3, asking the bishop to decide at once, with 4… Bh5 5. d4 Nd7 6. Nc3 c6.

The key idea: three minor pieces and a boxed-in king

After 5… Bxd1, White has mate in two. 6. Bxf7+ is check, and the king’s only legal move is 6… Ke7: d7 is covered by the knight on e5, and the bishop on f7 can’t be taken because the same knight protects it. Then 7. Nd5# finishes.

Look at the king’s squares in the final position. The bishop on f7 covers e6 and e8. The knight on d5 gives check and covers f6. The knight on e5 covers d7 and guards the bishop. Black’s own queen, bishop and pawn sit on d8, f8 and d6. White mates with no queen at all.

The pattern behind it is the same one behind many quick wins: f7 is weak early in the game, and when a bishop on c4 already aims at it, a knight leaving f3 can turn a pin into a mating attack. Before you pin a knight to the queen, check whether the knight can move with a threat.

How Black avoids Legal’s Mate

Black had an exit at each of three moves.

3… Be7 instead of the pin, the engine’s choice: no pin, no trick.

4… Nc6 instead of g6, so e5 has a second defender.

5… dxe5 instead of taking the queen: Black ends up a pawn down but stays in the game.

The habit behind all three: when your opponent offers you something for free, look at their checks first. Here the check was 6. Bxf7+, and it was on the board before Black touched the queen.

The game, move by move

1. e4

Pawn to e4. White grabs the center.

1… e5

Pawn to e5. Black does the same.

2. Nf3

Knight to f3 attacks the pawn on e5.

2… d6

Pawn to d6 guards it. This is the Philidor Defense.

3. Bc4

Bishop to c4. Look where it points: f7, next to Black’s king.

3… Bg4 Inaccuracy

Bishop to g4 pins the knight to White’s queen. An inaccuracy.

After 3… Bg4♜♞♛♚♝♞♜♟︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♝♟︎♝♞♟︎♟︎♟︎♟︎♟︎♟︎♟︎♜♞♝♛♚♜h1g2f3e4d5c6b7a8
After 3… Bg4

The pin: White’s knight on f3 can’t move without exposing the queen on d1. The engine grades it an inaccuracy and preferred 3… Be7. A pin like this only holds as long as moving the knight really costs White something.

4. Nc3

Knight to c3. Another piece out. Remember this knight.

4… g6 Blunder

Pawn to g6? A blunder. Knight to c6 was the move.

After 4… g6♜♞♛♚♝♞♜♟︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♝♟︎♝♞♞♟︎♟︎♟︎♟︎♟︎♟︎♟︎♜♝♛♚♜h1g2f3e4d5c6b7a8
After 4… g6

The real turning point: White goes from about half a pawn better to more than two pawns better. The e5 pawn has a single defender, and g6 does nothing for it. 4… Nc6 was the move, adding a second defender.

5. Nxe5 Brilliant

Knight takes e5! A brilliant sacrifice. The queen is left hanging.

After 5. Nxe5♜♞♛♚♝♞♜♟︎♟︎♟︎♟︎♟︎♟︎♟︎♞♝♟︎♝♞♟︎♟︎♟︎♟︎♟︎♟︎♟︎♜♝♛♚♜a8b7c6d5e4f3g2h1
After 5. Nxe5

The knight leaves the pin with a capture, and three pieces are suddenly en prise: White’s knight on e5 and queen on d1, and Black’s bishop on g4, which the knight and the queen now both attack. The best reply was 5… dxe5 6. Qxg4, with White a pawn up.

5… Bxd1 Blunder

Bishop takes the queen. A blunder. Pawn takes e5 was the move.

After 5… Bxd1♜♞♛♚♝♞♜♟︎♟︎♟︎♟︎♟︎♟︎♟︎♞♝♟︎♞♟︎♟︎♟︎♟︎♟︎♟︎♟︎♜♝♝♚♜h1g2f3e4d5c6b7a8
After 5… Bxd1

Black takes the queen and walks into mate in two. The engine’s move was 5… dxe5. The capture fails because White’s remaining pieces, the bishop on c4 and both knights, are already in position around f7.

6. Bxf7+

Bishop takes f7, check!

6… Ke7

King to e7. The only move.

7. Nd5#

Knight to d5. Checkmate, with three minor pieces.

After 7. Nd5#♜♞♛♝♞♜♟︎♟︎♟︎♚♝♟︎♟︎♟︎♞♞♟︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♜♝♝♚♜a8b7c6d5e4f3g2h1
After 7. Nd5#

The knight on d5 checks the king on e7 and covers f6. The bishop on f7 covers e6 and e8, the knight on e5 covers d7, and Black’s own pieces block d8, f8 and d6.

Try it yourself

White to move♜♞♛♚♝♞♜♟︎♟︎♟︎♟︎♟︎♟︎♟︎♟︎♝♟︎♝♞♞♟︎♟︎♟︎♟︎♟︎♟︎♟︎♜♝♛♚♜a8b7c6d5e4f3g2h1
White to move

White to move. Black’s bishop on g4 pins your knight to the queen. Find the move that wins material anyway.

Show the answer

Nxe5

5. Nxe5! The knight takes a pawn and attacks the bishop on g4, and moving it opens the queen’s diagonal to g4 as well. If Black takes the queen with 5… Bxd1, then 6. Bxf7+ Ke7 7. Nd5# is mate. If Black takes the knight instead, the engine’s line is 5… dxe5 6. Qxg4, and White has won a pawn.

Frequently asked questions

What is Legal’s Mate in chess?

Legal’s Mate is a trap where White sacrifices the queen with a knight capture, and if Black takes the queen, White mates with a bishop and two knights. In this game it went 5. Nxe5 Bxd1 6. Bxf7+ Ke7 7. Nd5#.

Is Legal’s Mate the same as the Philidor Defense?

No. The Philidor Defense is the opening, 1. e4 e5 2. Nf3 d6. Legal’s Mate is a trap that came out of it in this game after Black pinned the knight with Bg4.

How do you avoid Legal’s Mate as Black?

Don’t take the queen. After 5. Nxe5, taking the knight with 5… dxe5 avoids the mate, although White is still clearly better. Earlier, 4… Nc6, the engine’s choice, gives e5 a second defender.

Why does White give up the queen?

Because taking it costs Black the game. After 5… Bxd1, White has a forced checkmate in two moves with Bxf7+ and Nd5#.

Can you checkmate without a queen?

Yes. In Legal’s Mate the final checkmate is delivered by a knight, with another knight and a bishop covering every square the king could escape to.

♟
Tutorial by ch4.dev

Chess educator & creator

Keep playing

Up next

All lessons →