Chess Checkmate

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:

br
bb
br
bk
bp
bp
bp
bp
bp
bn
bp
wp
wq
wp
wp
wb
wp
wp
wp
wr
wk
White to move: 1.Qxh7# is mate. The queen leads, the bishop on c2 backs it up, and no black piece guards h7. Open in analysis →

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.

br
bq
br
bk
bp
bp
bb
bp
bp
bb
bp
bn
bp
bn
bp
wb
wn
wp
wn
wb
wp
wp
wp
wp
wq
wp
wp
wk
wr
wr
Yugoslav Attack after 10.O-O-O. White will play h4-h5 and Bh6; Black counterattacks on the c-file. Open in analysis →
Play through the Yugoslav Attack →

Three rules for pawn storms in these races:

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:

bk
bp
bp
wp
bp
wq
wp
wp
wp
wk
White to move: 1.Qg7# is mate. The pawn on f6 protects the queen on g7. Open in analysis →

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.

Practise with puzzles Play the computer