Checkmates
Attacking the Castled King
Castling puts the king behind a wall of pawns, but that wall is only as strong as the pieces defending it. A successful attack on a castled king almost always follows the same recipe: bring more attackers to the king's side than the opponent has defenders, open a line for your heavy pieces, and then break the pawn cover, often with a sacrifice. This article walks through those steps, the typical sacrifices on h7, f7 and g7, and the mating patterns you are aiming for.
Count attackers and defenders first
Before any pawn push or sacrifice, count. Which of your pieces can reach the kingside in one or two moves, and which of the opponent's pieces can come back to defend? A knight on f6 is the single most important defender of a kingside castled king, because it covers h7, h5, g4 and e4. A bishop on g7 (in a fianchetto) is the second. If you can exchange, deflect or drive away those pieces, the attack gets much easier.
Good attacks are rarely the result of one brilliant move. They come from steady preparation: a knight to g5 or e5, a bishop on the b1-h7 diagonal, a rook lift to the third rank, a queen that can reach h5 or h6. When the pieces are in place, the breakthrough usually works almost by itself.
Same-side castling: piece play first
When both kings have castled kingside, pushing your own g- and h-pawns also weakens your own king. That is why attacks in these positions usually rely on pieces rather than pawns. Typical tools are:
- The Bd3 and Qc2 battery aimed at h7, or the reverse with the queen in front on d3 and the bishop behind on c2 or b1.
- A knight jump to g5 or e5, hitting h7 and f7.
- A rook lift, such as Re1-e3-h3 or Rf1-f3-h3, to bring a rook to the h-file without opening it.
- A central pawn on e5, which drives the black knight away from f6 and takes the square from every black piece.
The diagram shows the end point of this kind of attack. The queen and bishop line up on the b1-h7 diagonal, the knight that should be on f6 is gone, and 1.Qxh7# is mate because the rook on f8 blocks the king's escape. Once you recognise this battery, you will see it threatened in countless games, and you will learn to keep a knight on f6 when you are defending against it.
Opposite-side castling: race with pawns
When the kings castle on opposite sides, the logic changes. Pushing your pawns toward the enemy king no longer weakens your own king, so both sides launch pawn storms and the game becomes a race. Tempo is everything: the side whose attack lands first usually wins, and a single wasted move can be fatal.
The Yugoslav Attack against the Sicilian Dragon is the textbook case. After 1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6 5.Nc3 g6 6.Be3 Bg7 7.f3 O-O 8.Qd2 Nc6 9.Bc4 Bd7 10.O-O-O White's plan is h4-h5 to open the h-file, Be3-h6 to trade off the dragon bishop on g7, and then Qd2-h6 or a rook to the h-file. Black races on the queenside with ...Rc8, ...Ne5, ...Nc4 and often ...Rxc3 exchange sacrifices.
Three rules for pawn storms in these races:
- Aim at a pawn you can hit. A pawn on g6 or h6 gives your h-pawn or g-pawn something to attack and open a file with. A king behind unmoved pawns on f7, g7 and h7 is harder to break.
- Open files, not closed ones. If the opponent can answer h5 with ...h6 and keep the file closed, you may need to sacrifice a pawn to force it open.
- Do not stop to defend unless you must. In a race, a defensive move gives your opponent a free tempo. Calculate whether you are faster before switching to defence.
Opening files for the rooks
A rook on an open file next to the enemy king is often worth more than an extra piece somewhere else. Files open in three ways: by a pawn exchange (h4-h5xg6), by a pawn sacrifice that forces a recapture, or by a piece sacrifice. When planning an attack, ask which file you are trying to open and which of your rooks will use it. Rooks that are still on a1 and h1 when the file opens are not attacking anything.
Sacrifices on h7, f7 and g7
h7. The most common sacrifice is the bishop sacrifice Bxh7+, known as the Greek Gift. It works best with a knight ready for Ng5+ and the queen ready for Qh5. The full set of conditions and defences is covered in our article on the Greek Gift sacrifice.
f7. The f7 square is guarded only by the king at the start of the game, so early attacks with Bc4 and Ng5 or Qh5 aim straight at it. After castling, f7 is guarded by the rook too, but sacrifices like Bxf7+ or Rxf7 still appear when the king has nowhere to go and a knight or queen can follow up on e6 or g5. The usual payoff is a pawn cover that is stripped away so the queen can enter.
g7. Sacrificing on g7, usually with a bishop or rook, breaks the pawn shield at its center. It works when your queen can reach the g-file or h6 immediately after the capture, or when a rook on the g-file is ready to give check. A classic idea is the double bishop sacrifice on h7 and g7, which removes both pawns in front of the king and leaves the queen and rook to finish.
Typical mating nets
Once the pawn cover is broken, a few shapes keep recurring:
- Qxh7# with a bishop or knight supporting h7, as in the first diagram.
- Qg7# supported by a pawn on f6. A white pawn wedged on f6 is a nightmare for a king on g8, because it covers g7 and e7 permanently.
- The back-rank mate, when the king's own pawns trap it and a rook or queen lands on the eighth rank.
- Rook and knight nets, such as a knight on f5 or e7 combined with a rook on the h-file or g-file.
The f6-pawn pattern in the diagram is worth memorising. If you can get a pawn to f6 against a fianchettoed or weakened king, look for Qh6 and Qg7 straight away. As the defender, try to stop the pawn from arriving or trade the queen before it can use the hole.
How to practise this
Play through attacking games with an eye on preparation rather than the final combination: how many moves did the winner spend bringing pieces over before the sacrifice? Our famous games page is a good start. Then solve attacking puzzles on the puzzles page and try to name the pattern before you calculate. In your own games, try playing a position with opposite-side castling against the computer on the play page and practise counting tempi in the race.
- Count attackers against defenders before you commit.
- With same-side castling, attack with pieces; with opposite-side castling, storm with pawns.
- Know which file you are opening and which rook will use it.
- Learn the Qxh7#, Qg7# and back-rank shapes so you recognise them early.