Anastasia's mate works when a knight seals the two squares beside an edge king and a rook or queen checks along the open edge file or rank. The pattern is not just a queen sacrifice. You must confirm the knight's control, the king's own blocker, and a clear line for the final check.
Use Back and Forward to replay the five half-moves. The current FEN can be copied at every step. After the lesson, continue from the exact starting position as White against Defender Bot or Beginner Teacher on the full Play Positions board.
Interactive lesson
Build Anastasia's mate
White to move: prepare both escape squares
The black king is on the edge, but the rook cannot mate yet. White must place the knight where it controls g8 and g6, then open the h-file without giving Black time to escape.
5rk1/p4ppp/2N5/8/8/3Q4/6K1/R7 w - - 0 1Play the position
Continue from the starting setup and calculate the game from the board in front of you. Choose a supported opponent and play to the natural result.
What makes Anastasia's mate work?
Anastasia's mate is a knight-and-rook mating pattern against a king on the edge of the board. The knight controls two nearby flight squares. A piece belonging to the defending side blocks another exit, and the rook or queen checks along the edge file or rank.
In this lesson, the black king starts on g8. White's knight begins on c6, the queen is on d3, and the rook waits on a1. Black's rook on f8 and pawns on f7, g7, and h7 restrict the king. The position is constructed for teaching and is not presented as a historical game.
Starting FEN: 5rk1/p4ppp/2N5/8/8/3Q4/6K1/R7 w - - 0 1. A controlled Stockfish 17.1 Lite check finds mate in three with 1.Ne7+ Kh8 2.Qxh7+ Kxh7 3.Rh1#.
Put the knight on the square that locks both exits
The key move is 1.Ne7+!. From e7, the knight attacks g8 and g6. The first attack checks the king. The second attack will matter after the king is drawn down to h7.
Because a knight check cannot be blocked, Black must move or capture the knight. The king cannot capture e7, and f8 is occupied by Black's rook. Chess.js finds one legal response: 1...Kh8.
This is the first calculation test. Do not remember only that a knight belongs on e7. On a mirrored board, another square may play the same role. Ask which knight square covers both exits beside the king.
Why the queen sacrifice opens the final line
After 1...Kh8, White plays 2.Qxh7+!. The queen removes the pawn that blocks the h-file and gives check at the same time. Black cannot step to g8 because the knight controls it. Chess.js again finds one legal reply: 2...Kxh7.
The sacrifice is useful because it performs two jobs. It clears h7 from the rook's line, and it draws the king onto that line. White then plays 3.Rh1#.
At the final position, the rook controls h2 through h8. The knight on e7 controls g8 and g6. Black's pawn occupies g7, so the king cannot use that square. The rook is too far away for the king to capture, and no black piece can block the check.
Use the three-part test before sacrificing
- Edge: is the king on a file or rank where a rook can give a long check?
- Knight: does your knight control both flight squares beside that king?
- Line: can the rook or queen reach the checking line after every capture?
Also count the defender's own pieces. In the lesson, the g7-pawn helps White because it occupies an escape square. The rook on f8 makes 1.Ne7+ forcing. If either blocker can move during the combination, calculate that defense before giving up material.
Common Anastasia's mate mistakes and exceptions
Putting the knight near the king without checking its attacks
A knight that looks active may still miss one flight square. In the comparison FEN 5r2/p4ppk/8/2N5/8/8/6K1/R7 w - - 0 3, the knight is on c5 instead of e7. After 1.Rh1+, Black can play 1...Kg6. Chess.js confirms both Kg8 and Kg6 are legal, so the rook move is not mate.
Forgetting a piece on the rook line
The final rook check needs an open file or rank. A pawn, piece, or uncompleted capture between the rook and king breaks the line. Trace every square from the rook to the king before calculating the sacrifice.
Assuming the queen must be sacrificed
The mating picture defines the pattern, not the sacrifice. If the edge line is already open and the king is already trapped, a rook check may finish immediately. In this lesson, the queen sacrifice is the forcing method that clears h7 and moves the king.
Stopping after the familiar moves
Names do not make combinations sound. Count king moves, captures, blocks, and captures of the checking piece at every step. If one legal reply remains, continue calculating instead of declaring mate.
Edge, knight, line. Put the king on the edge, make the knight cover both exits, and clear the rook's line. If one part is missing, do not sacrifice yet.
Practise the position from the start
Replay the lesson until you can name g8 and g6 before pressing Forward. Then choose Defender Bot or Beginner Teacher. You play White from the original FEN. Continue from the starting setup and calculate the game from the board in front of you. Choose a supported opponent and play to the natural result.
The read-only lesson verifies one forcing line. The full Play Positions board is open practice and keeps its normal opponent and side controls. It does not promise a particular reply unless that move is the only legal move.
Compare the knight-and-rook cage with the smothered mate lesson, where a knight gives the final check, and the back-rank mate lesson, where one flight square changes the finish. Use the guide to calculate forcing moves, then mix the pattern into the chess tactics trainer.
How this lesson was checked: Olivers Grants wrote the article, and developer and ML researcher Uldis Briedis reviewed the technical implementation. Chess.js 1.4.0 loaded both FENs, replayed every SAN move, counted the forced replies, and confirmed the final mate. Stockfish 17.1 Lite WASM analyzed the main position and the knight-placement exception for 3,000 ms each.