Attacking the Castled King: The Pawn Shield and the Mating Patterns

When Black castles kingside, the king goes to g8 and the rook to f8. Three pawns stay in front of the king on f7, g7 and h7, and they act as a shield. How castling works and when it is allowed is in Castling Rules.
This post looks at ways for White to attack that king, together with the named checkmate patterns that come out of it. The positions are examples I set up. The notation is explained in How to Read Chess Notation.
The pawn on h7
Right after castling, h7 is defended by the king and, if there is one on f6, by Black’s knight. Once the knight leaves f6, only the king defends h7.
The g7 pawn has another job. It covers f6 and h6 diagonally and keeps White’s pieces off those squares. If that pawn moves to g6, no pawn defends f6 or h6 any more.
The first half of this post is about attacks on h7. The second half is about positions where the shield pawns have moved, or where a White pawn has pushed into the shield.
The bishop sacrifice on h7
The English Wikipedia article Greek gift sacrifice describes it as a typical bishop sacrifice, Bxh7+ by White or Bxh2+ by Black, played after the opponent has castled kingside. It is also called the classical bishop sacrifice. The aim is usually to checkmate the king or to win back the material.
The article lists five conditions for the attack to succeed:
- The attacker controls g5 more than the defender does
- The attacker’s knight can reach g5 with check
- The attacker’s queen can join the attack, often on the h-file
- The defender cannot safely bring a piece to defend h7
- The defender cannot easily reorganise
Position 1: 1. e4 e6 2. d4 d5 3. Nc3 Nf6 4. e5 Nfd7 5. Nf3 Bb4 6. Bd3 O-O. White to move.
The black knight on f6 was pushed back to d7 by the pawn on e5, so only the king defends h7. White’s bishop on d3 points at h7. On g5, White has the bishop on c1 and the knight on f3, while Black has only the queen on d8.
- Bxh7+. Black can decline with 7…Kh8, and White is then a pawn up. After 7…Kxh7 8. Ng5+, Black has five replies.
- 8…Kh8 9. Qh5+ Kg8 10. Qh7#
- 8…Qxg5 9. Bxg5. White has given a bishop and a knight for a pawn and the queen
- 8…Kh6 9. Nxf7+. The knight move opens the diagonal of the bishop on c1, so both pieces give check. It is a double check, the king has to move, and 10. Nxd8 takes the queen
- 8…Kg8 9. Qh5, threatening Qh7#
- 8…Kg6, the king steps forward, and from here the lines get long
After 8…Kg8 9. Qh5, only four black moves stop the immediate Qh7#: Re8, Nf6, Qxg5 and Bxc3+. 9…Re8 clears f8 as an escape square for the king. White goes on with 10. Qxf7+ Kh8 11. Qh5+ Kg8 12. Qh7+ Kf8 13. Qh8+ Ke7 14. Qxg7#, and from move 10 on Black has only one legal reply each time. The king runs to f8 and is chased out to e7, where it is mated.
When the bishop is on e7
The same article adds that if the defender has a bishop on e7, the attacker needs a pawn on h4.
Position 2: 1. e4 e6 2. d4 d5 3. Nc3 Nf6 4. e5 Nfd7 5. Nf3 Be7 6. Bd3 O-O. The only difference from Position 1 is that Black’s bishop is on e7 instead of b4. White to move.
If White plays the same 7. Bxh7+ Kxh7 8. Ng5+, Black now has 8…Bxg5, because the bishop on e7 covers g5. The checking knight is taken at once, and the second piece aimed at h7 is gone. The first condition in the article, the count of pieces covering g5, is what changed from Position 1.
A pawn inside the shield
Here a White pawn has advanced to g6 and pushed into Black’s shield. The English Wikipedia article Checkmate pattern lists this as Damiano’s mate, which works by confining the king with a pawn and mating with the queen. According to the article, Pedro Damiano first published it in 1512, and the position is often reached by first sacrificing a rook on the h-file.
Position 3: White: king b1, queen d1, rook h1, pawns a2, b2 and g6. Black: king g8, rook f8, pawns a7, b7, e6 and g7. White to move.
- Rh8+. The g6 pawn covers f7 and h7, so Black must play Kxh8
- Qh5+. Black has to go back with Kg8
- Qh7#
In the final position the g6 pawn defends the queen on h7, so the king cannot take it. The pawn also covers f7, and the queen covers h8. The king’s own rook blocks f8 and its own pawn blocks g7.
After …g6
If Black has pushed the g7 pawn to g6, f6 and h6 are no longer covered by a pawn, as noted above. When a White pawn gets to f6, g7 becomes a hole that the pawn defends. The Checkmate pattern article lists this as Lolli’s mate, a mate that breaks into Black’s fianchetto with a pawn and the queen. The article says the queen often reaches h6 by sacrifices on the h-file.
Position 4: White: king g1, queen f4, pawns f2, g2, h2 and f6. Black: king g8, rook a8, pawns a7, b7, f7, g6 and h7. White to move.
- Qh6. This is a quiet move, not a check. The threat is Qg7#. Black has eleven legal replies, and every one of them is met by 2. Qg7#.
The queen on g7 is defended by the f6 pawn, so the king cannot take it. The queen covers f8 and h8, and f7 and h7 hold Black’s own pawns. 1…Kh8 into the corner and 1…g5 both run into the same Qg7#.
A mate on the h-file with a queen sacrifice, followed by knight and rook, is in Sacrificing to Checkmate.
When none of the pawns have moved
If the f7, g7 and h7 pawns are all still on their starting squares, the king cannot step off the back rank. A rook or queen landing on the eighth rank can then give mate. The pattern and how to prevent it are in Back-Rank Mate.
Sources
- Wikipedia, “Greek gift sacrifice” (English)
- Wikipedia, “Checkmate pattern” (English)
Practising with Chess365
Chess365 is a checkmate puzzle app with 1,000 puzzles each of mate in 2, 3, 4 and 5. You always play White, you can make any legal move, and Black replies automatically. If the line ends without mate, the app tells you the king got away and you start again from the beginning. If you stalemate Black, the app shows a separate message explaining that it is a draw.
A hint lights up the piece to move and its destination, and you play the move yourself. After solving, “Review moves” lets you step back and forward through the moves to check the line.
All the puzzles are free, and a one-time “Remove Ads” purchase removes the ads. How to start with mate puzzles is in Chess checkmate puzzles for beginners, and how to use the app is in Getting Started with Chess365.
Chess365A chess mate puzzle every daySee the app →