How to attack the king in chess: the pawn shield, open lines and counting attackers
By ChessHut · 2026-12-06
Most chess games are decided by an attack on the king, and most beginners attack badly: one queen goes hunting alone and gets chased home. A good attack follows a few simple rules, and you can learn to see them. This guide covers what makes a king safe, what makes it weak, and how to build an attack that works.
Step 1: look at the pawn shield
A castled king is protected by the pawn shield in front of it: usually the pawns on f, g and h (or a, b and c on the queenside). While the shield is intact, enemy pieces have few squares to attack from.
Every pawn move in front of the king creates holes. A common weakening is ...h6 (or ...h5): the pawn leaves h7, so that square is now free for an attacking queen or knight, and the king loses a flight square it might have wanted. Look at any moved pawn and ask: which square can I now use?
Step 2: open a line to the king
Pieces attack along lines. A king behind a closed shield can only be reached if you open a file, rank or diagonal:
- Open a file with a pawn push or trade, then bring a rook to it (see rooks and open files).
- Aim a bishop at the king's pawn shield, especially at h7 or h2 (the Greek gift sacrifice is the classic case).
- Use the queen on a diagonal with a bishop behind it: a battery doubles the force on one square.
Step 3: count the attackers and the defenders
A good rule: never start an attack with fewer pieces near the king than the defender has. Before you go for the king, look at the squares around it and count:
- How many of your pieces can reach the area in one or two moves?
- How many of their pieces defend it?
- Is there a knight or bishop of theirs that can trade off an attacker?
If you are clearly outnumbered, develop or bring more pieces first. A lone queen raid usually just loses time, which is the reason beginners are told to develop their pieces before attacking.
Step 4: use checks and threats, not hopes
Attacks work when each move forces something: a check, a capture, or a threat of mate. Look at this position, where every move for White is forcing:
The shape to notice: the queen (on g6) and the knight do the work, the black king's own pawns (f7, g7 and h6) take away its escape squares, and the pin removes the defender. Compare with the back rank mate: the king's own pawns are again the cause of its problems. More patterns are in mate in 2 and mate in 3.
When to sacrifice
A sacrifice is giving up material to get at the king. It is justified when you can calculate that it leads to mate or to a large gain, or when the opponent's king is so exposed that the extra pieces you keep will clearly win. Beginners should only sacrifice when:
- the line is forcing (checks and captures) and you can see it to the end, and
- you have more attackers than the defender can handle.
If you can't see the end, don't. Declined sacrifices usually leave you a piece down. See chess tactics for beginners and decoy, deflection and removing the defender for sacrifices that work.
When your own king is the target
Everything above works in reverse. Protect your king by castling early, keeping the pawn shield unmoved unless you have a clear reason, and not removing the defenders (bishop, knight) that guard it. The free lesson on king safety covers this, and common beginner mistakes lists the weakening moves new players make most often.
See also: when the kings are on opposite wings the attack becomes a race: opposite-side castling.
Frequently asked questions
How do you attack a castled king?
Look at the pawn shield for holes, open a file or diagonal towards the king, bring more pieces near it than the defender has, and keep every move forcing with checks, captures and threats.
Should I always attack the king?
No. Attack when you have more attackers than defenders near the king, or when the structure around it is weak. Otherwise improve your pieces first.
When should I sacrifice a piece for an attack?
Only when you can see the forcing line through to mate or to a clear gain. If you can't calculate it, keep the material.