Skip to content
Aback Chess
Sponsors

How to attack the king in chess

How to attack the king in chess: when to attack, kingside attacks, pawn storms, opposite side castling and the Greek gift sacrifice, with examples on boards.

Tactics9 min readUpdated

In short

To attack the king in chess, first make sure the position allows it: a lead in development, more pieces near the king than the defender has, and a safe centre. Then bring your pieces toward the king, open lines with pawn advances or exchanges, remove or drive away the defenders, and look for sacrifices such as the Greek gift on h7. With kings castled on opposite sides, both players storm with pawns and speed decides.

Attacking the king is the most direct way to win a chess game, and also the easiest way to lose one. A good attack brings more force to the king than the defender can bring to protect it. A bad one throws pieces and pawns forward, runs out of steam, and leaves your own position full of holes. The difference is almost always in the preparation, not the sacrifice at the end.

1When should you attack the king?

An attack needs reasons. The position has to give you an advantage near the king, or the attack will simply be beaten off. Before you start, look for these signs.

  • More of your pieces can reach the king's area than the opponent's pieces can defend it. Counting attackers and defenders is a rough but useful guide.
  • You are ahead in development, so you can bring pieces faster than the defender.
  • The defender's king cover is weakened: a pawn moved in front of the king, a missing fianchetto bishop, or no knight on f6 (or f3).
  • The centre is closed or stable. An attack on the wing can be answered by a break in the centre, so a locked or safe centre makes a wing attack much safer.
  • You have a space advantage on the side where the king is, often from a pawn on e5 (or e4 for Black) that takes f6 away from the defending knight.

2How to start a kingside attack

Most attacks are made against a king castled short, on g1 or g8. A kingside attack has three stages, and they usually come in order.

  1. 1Bring pieces. Aim bishops at h7 or h2, put a knight on g5 or e5, lift a rook to the third rank, and bring the queen to the h-file or the g-file.
  2. 2Open lines. Pawn advances such as h4-h5 or g4-g5 attack the pawns in front of the king and open files for your rooks. Exchanges that remove defenders do the same job.
  3. 3Break through. Once your pieces are close and a line is open, look for checks, captures and sacrifices that rip the king's cover away.

Remove the defenders as you go. A knight on f6 is the castled king's best defender, so moves that pin it, trade it or chase it away with a pawn are often the start of an attack. The fianchetto bishop on g7 is the other key defender: trading it with a bishop on h6 leaves dark squares around the king that no black piece can cover.

3What is the Greek gift sacrifice?

The Greek gift is the bishop sacrifice on h7 (or h2 for Black), named after the Trojan horse. The bishop takes the h7 pawn with check, the king takes the bishop, a knight checks from g5, and the queen comes to h5 to threaten mate on h7. The idea goes back at least to Gioachino Greco in the early 1600s, and it is still one of the most common attacking patterns at every level.

A typical Greek gift set-up: the bishop on d3 aims at h7, the knight on f3 can reach g5, the queen can reach h5 once the knight has moved, and the pawn on e5 keeps a black knight off f6. No black piece defends h7 except the king.Open on the board

The ingredients are the point. White has the bishop on the b1-h7 diagonal, a knight that can reach g5 with check, a queen that can reach the h-file, and a pawn on e5 that stops a black knight from coming to f6 to defend h7. Black has no knight on f6 and no dark-squared bishop to take on g5.

After 1.Bxh7+ Kxh7 2.Ng5+ Kg8 3.Qh5, White threatens 4.Qh7 mate, with the knight on g5 protecting the queen.Open on the board

That is only one branch. After 2.Ng5+ Black can also play 2...Kg6, 2...Kh6 or 2...Kh8, or take the knight with 2...Qxg5, which the bishop on c1 answers with 3.Bxg5. Whether the sacrifice works depends on all of those lines, and on defences such as ...Re8 to free f8 for the king. Before you play Bxh7+ in a game, calculate the king's three main replies. The pattern tells you where to look; it does not do the calculating for you.

4Opposite side castling: who attacks first?

When the kings are castled on opposite sides, the game changes character. Each player can throw the pawns in front of the enemy king forward without weakening their own king, because those pawns are not sheltering anything. The result is a race: both sides storm, and whoever opens lines first usually wins.

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-OThe Sicilian Defence, Dragon Variation, Yugoslav Attack: White has castled queenside and Black kingside. White's usual plan is h4-h5 to open the h-file and Bh6 to trade Black's bishop on g7.Open on the board

Black's play comes on the other wing, along the half-open c-file and with ideas like ...Ne5-c4 and ...b5. In this kind of race, tempo is everything. A move that attacks something with gain of time is worth more than a slow improving move, and a defensive move is only worth making when it stops a direct threat.

  • Push the pawns that open files toward the enemy king. A pawn that is exchanged for one of the king's shelter pawns is usually the quickest way to open a line.
  • Do not push the pawns in front of your own king; they are your shelter.
  • Count how many moves each side needs to open a line. If you are slower, you may need to defend first or block the opponent's storm.
  • Sacrifice a pawn or even a piece if it opens a line a move sooner. In a race, time is often worth more than material.

5What is a pawn storm?

A pawn storm is an advance of several pawns, side by side, toward the enemy king. The pawns attack the king's shelter, force weakening pawn moves, and open files for your rooks and queen. Pawn storms are most natural with opposite side castling, but they also happen with both kings on the same side when the centre is locked, so the attacker's own king is not in danger from a central break.

1.d4 Nf6 2.c4 g6 3.Nc3 Bg7 4.e4 d6 5.Nf3 O-O 6.Be2 e5 7.O-O Nc6 8.d5 Ne7 9.Ne1 Nd7 10.Be3 f5 11.f3 f4 12.Bf2 g5A King's Indian Defence pawn storm: with the centre locked by the pawns on d5, e5, d6 and e4, Black's pawns on f4 and g5 advance toward the white king, ready for ...g4.Open on the board

In this structure White's play is on the queenside, where White pushes c4-c5 to open lines there, while Black attacks on the kingside. Because the centre is locked, neither side can punish the other's wing attack quickly through the middle, and the game becomes a race again even though both kings are castled short.

6How to defend when your king is attacked

  • Counter-attack in the centre. A wing attack is classically met by a central break, which opens lines for your own pieces and pulls the attacker's pieces back.
  • Trade attacking pieces, especially the queen. An attack without the queen usually has far less force.
  • Keep a knight on f6 (or f3) and do not let it be traded cheaply. Avoid weakening pawn moves in front of your king unless they stop a concrete threat.
  • Bring defenders before they are needed: a rook to f8 or e8, a bishop or knight to the kingside.
  • Calculate the opponent's sacrifices for them. If Bxh7+ is coming, check whether it works now, and if it does, prevent it with a move such as ...Nf6 or ...h6.

7Common attacking mistakes

MistakeWhat goes wrongBetter habit
Attacking with one or two piecesThe defender meets each threat and the attack fizzlesBring more pieces than the opponent can defend with
Starting a wing attack with an open centreA central break hits your weakened positionMake sure the centre is closed or under control first
Pushing the pawns in front of your own kingYou create the weaknesses you meant to attackStorm with the pawns that are not sheltering your king
Sacrificing on pattern aloneOne king move or defence refutes the sacrificeCalculate every check and capture the defender has
Ignoring the opponent's counterplayTheir storm arrives firstCount tempi on both wings with opposite side castling

8How to practise attacking the king

The puzzle themes page has a Kingside attack theme and an Exposed king theme, and attacking puzzles also appear under Sacrifice and under Mate in 2, 3 and 4. Solve them for the patterns, then play the attack out in real games against computer opponents on the Play page, where you can try attacking set-ups without risking a rating. After your games, a game review shows where an attack went wrong, and Key moments brings back the positions where you missed a winning attack so you can try them again.

Puzzle themes

Puzzles sorted by theme, including Kingside attack, Exposed king, Sacrifice and mates in one to four.

Frequently asked questions

What is the best way to attack a castled king?

Bring more pieces to the king's side than the opponent can defend with, open a line with a pawn advance or exchange, and remove the key defenders such as a knight on f6. Sacrifices come last, once the pieces are in place.

When does the Greek gift sacrifice work?

Usually when the attacker has a bishop aimed at h7, a knight that can check from g5 safely, a queen that can reach h5, and a pawn on e5 keeping a defending knight off f6. Even then you must calculate the king's replies, especially ...Kg6 and ...Kh6.

Should I castle on the opposite side to attack?

Opposite side castling makes pawn storms safer, because the pawns you push are not sheltering your own king. It also makes the game a race, so only choose it when you think your attack will be at least as fast as your opponent's.

What is a pawn storm in chess?

Several pawns advancing side by side toward the enemy king to break open its pawn cover and open files for rooks and the queen. It is most common with opposite side castling or a locked centre.

How do you defend against a kingside attack?

Counter in the centre if you can, trade the attacker's most dangerous pieces, keep a knight near your king, and avoid weakening pawn moves. Most importantly, look for the attacker's sacrifices before they happen.

How many pieces do you need to checkmate a king?

It depends on the king's cover. A king hemmed in by its own pieces can be mated by one, as in the back-rank and smothered mates, but attacking a well-defended castled king usually needs at least three or four pieces working together.