---
title: "How to Attack the King in Chess"
url: "https://georgelichess.com/learn/how-to-attack-the-king.md"
canonical_url: "https://georgelichess.com/learn/how-to-attack-the-king"
last_updated: "2026-11-25"
type: "guide"
summary: "When an attack on the king is justified, how many pieces it needs, how to open lines and which patterns finish it, with a famous game replayed move by move."
related: ["https://georgelichess.com/learn/defending-worse-positions.md", "https://georgelichess.com/glossary/sacrifice.md", "https://georgelichess.com/glossary/greek-gift-sacrifice.md", "https://georgelichess.com/glossary/opposite-side-castling.md", "https://georgelichess.com/glossary/king-safety.md", "https://georgelichess.com/glossary/counterplay.md", "https://georgelichess.com/pricing.md", "https://georgelichess.com/book/first-lesson.md", "https://georgelichess.com/learn/what-is-a-kingside-attack.md", "https://georgelichess.com/learn/opera-game-morphy.md", "https://georgelichess.com/learn/how-to-attack-an-uncastled-king.md"]
---

# How to Attack the King in Chess

> **For AI agents:** the complete index of GeorgeLiChess pages is [llms.txt](https://georgelichess.com/llms.txt). Every page is also served as markdown at its URL plus .md.

When an attack on the king is justified, how many pieces it needs, how to open lines and which patterns finish it, with a famous game replayed move by move.

Attack the king when you lead in development, a line toward the king is open or can be opened, and you can bring more pieces to the attack than the defender can bring back. Without those three things an attack is a gamble. With them it is the right plan, and waiting lets the other side catch up. Count attackers against defenders near the king, check what your opponent can do in the center, and make sure you have a forcing move at every step.

## When is it right to attack the king?

An attack is the result of an advantage, not a substitute for one. The positional school, from Steinitz to Lasker, put it simply: gather small advantages first, and the combination will be there when you look for it. Players who attack from an equal position run out of pieces, and the opponent's counterplay arrives first.

The advantage that matters most is time: the player with more pieces developed can aim more of them at the king, which is why the standard advice (develop, castle, connect the rooks) is also the first attacking advice. Before you start, judge the [king safety](https://georgelichess.com/glossary/king-safety.md) of both sides with the questions in the table.

**Five questions to ask before you attack**

| Question | What yes looks like | What no means |
| --- | --- | --- |
| Am I ahead in development? | More of your pieces are off their first rank than theirs | Your attack stalls while they finish developing with tempo |
| Is a line open, or can I open one? | A file, rank or diagonal points at the king, or a pawn break or sacrifice will open one | Your pieces have nothing to aim at |
| Do I have more attackers than they have defenders? | You can bring more pieces to the squares around the king | Every threat is parried and you lose time |
| Is the center stable? | It is closed, or you control it, so a wing attack cannot be punished | Your opponent answers with a central strike |
| Is my own king safe from a quick counterattack? | Their counterplay is slow or absent | You are in a race that you may lose |

If the first three answers are yes, attack. If either of the last two is no, think twice: one no is a warning, not a ban, but be able to say why you are going ahead.

## How many pieces do you need for an attack?

A working rule of thumb is three: the queen and two other pieces can usually create real threats, while a lone piece cannot. Pawns count too, when they attack a defender or open a file. It is a prompt to count, not a proof.

Count in four steps:

1. Mark the king zone: the squares next to the king and the squares in front of it that its pawns cover.
2. Count your pieces that can reach those squares within two moves.
3. Count the enemy pieces that can come back to defend them within two moves.
4. Recount after each exchange, because trades usually help the defender more than the attacker.

The last step is where many attacks fail, since every trade removes an attacker and the defender is happy to trade the most dangerous one. Keep your pieces on the board until the king is open. If you are the defender, see [defending a worse position](https://georgelichess.com/learn/defending-worse-positions.md).

## How do you open lines toward the king?

Pieces are useless without lines. Four usual ways to open them: a pawn lever such as h4 and h5 against a castled king, a piece [sacrifice](https://georgelichess.com/glossary/sacrifice.md) that tears the pawn cover, an exchange that removes a defender, and a check that forces a reply.

The best short lesson is the game Paul Morphy played in Paris in 1858 with the Duke of Brunswick and Count Isouard as his opponents, who played together against him. Here it is after Black's ninth move. Black has brought out one knight and the queen. White has all three of its remaining minor pieces in play, and Black's bishop on f8, knight on b8 and both rooks have not moved.

**Diagram: White to move: three of White's remaining minor pieces are in play against one of Black's, and the king is still in the center** Moves: 1. e4 e5 2. Nf3 d6 3. d4 Bg4 4. dxe5 Bxf3 5. Qxf3 dxe5 6. Bc4 Nf6 7. Qb3 Qe7 8. Nc3 c6 9. Bg5 b5. Position (FEN): `rn2kb1r/p3qppp/2p2n2/1p2p1B1/2B1P3/1QN5/PPP2PPP/R3K2R w KQkq b6 0 10`. Arrows: c3 to b5, c4 to f7.

Morphy sees the lead and spends material to turn it into open lines. He gives a knight for two pawns, which leaves him one point down on the usual scale, but the move opens the b5 square for his bishop with check and pins the knight on d7.

**Diagram: After 10.Nxb5 cxb5 11.Bxb5+ Nbd7: a knight for two pawns, and the d7 knight is pinned against the king** Moves: 1. e4 e5 2. Nf3 d6 3. d4 Bg4 4. dxe5 Bxf3 5. Qxf3 dxe5 6. Bc4 Nf6 7. Qb3 Qe7 8. Nc3 c6 9. Bg5 b5 10. Nxb5 cxb5 11. Bxb5+ Nbd7. Position (FEN): `r3kb1r/p2nqppp/5n2/1B2p1B1/4P3/1Q6/PPP2PPP/R3K2R w KQkq - 1 12`. Arrows: b5 to d7, g5 to f6.

Now every White move carries a threat. The rest of the game is a sequence of pins, checks and captures that Black cannot interrupt:

Morphy's finish from move 12: **12. O-O-O Rd8 13. Rxd7 Rxd7 14. Rd1 Qe6 15. Bxd7+ Nxd7 16. Qb8+ Nxb8 17. Rd8#**

The last two sacrifices are the point. After 16.Qb8+ Nxb8 17.Rd8# White has given up a queen, and at the moment of mate White is behind 15 to 25 on the usual scale (queen 9, rook 5, bishop and knight 3, pawn 1). Material did not matter, because every Black piece that could have helped was tied down, blocked or on the wrong side of the board.

**Diagram: The final position: the bishop on g5 guards the rook on d8, and the rook, the bishop and Black's own pieces cover every escape** Moves: 1. e4 e5 2. Nf3 d6 3. d4 Bg4 4. dxe5 Bxf3 5. Qxf3 dxe5 6. Bc4 Nf6 7. Qb3 Qe7 8. Nc3 c6 9. Bg5 b5 10. Nxb5 cxb5 11. Bxb5+ Nbd7 12. O-O-O Rd8 13. Rxd7 Rxd7 14. Rd1 Qe6 15. Bxd7+ Nxd7 16. Qb8+ Nxb8 17. Rd8#. Position (FEN): `1n1Rkb1r/p4ppp/4q3/4p1B1/4P3/8/PPP2PPP/2K5 b k - 1 17`. Arrows: g5 to d8.

## What are the standard attacking patterns?

Three patterns come up in most attacks.

**The sacrifice on h7.** A bishop on the diagonal toward h7, a knight that can jump to g5 and a queen that can reach h5 make a famous trio. White plays Bxh7+, takes on h7 with the king, then checks with the knight and brings the queen to h5. The conditions matter: Black must have no knight on f6 to take on h7, no piece that can capture the knight on g5, and no quick flight square for the king. The glossary page on the [Greek gift sacrifice](https://georgelichess.com/glossary/greek-gift-sacrifice.md) lists the conditions in detail.

**Diagram: A Greek gift set-up: the pawn on e5 shuts out a knight from f6, the knight can reach g5 and the queen can reach h5** Position (FEN): `r4rk1/1bq2ppp/p3p3/1p2P3/5P2/3B1N2/PPP3PP/R2Q1RK1 w - - 0 1`. Arrows: d3 to h7, f3 to g5.

After the sacrifice White threatens Qh7 mate: **1. Bxh7+ Kxh7 2. Ng5+ Kg8 3. Qh5**

Qh7 would be mate if Black passed, but Black has several moves that stop it, and the sacrifice is correct only if you have checked every one. A pattern tells you where to look, and calculation tells you whether it works. A method for that check is in the guide to [calculating variations](https://georgelichess.com/learn/how-to-calculate-better-in-chess.md).

**The queen and knight against the h-file.** Once the knight is on g5 and the queen on h5 or h7, the mate on h7 is hard to stop. Here is the final shape, which you should know on sight:

**Diagram: Qh7 is mate: the knight guards the queen, Black's own rook takes away f8 and the pawns on f7 and g7 close the rest** Position (FEN): `r4rk1/ppp2pp1/8/6NQ/8/8/PPP2PPP/5RK1 w - - 0 1`. Arrows: h5 to h7.

**The pawn storm.** When the kings castle on opposite sides, each player pushes pawns at the other's king, and the pieces follow the lines the pawns open. Speed is everything, so skip moves that do not help the attack. The glossary page on [opposite-side castling](https://georgelichess.com/glossary/opposite-side-castling.md) describes the typical races.

## When should you switch from attack to a positional plan?

An attack need not end in mate to pay off. It can win material, force a trade into a better endgame or leave the opponent with a damaged king. Switch to a positional plan when the attack has done its job or run dry. Three signs say so.

- **The forcing moves have run out.** If you cannot find a check, capture or threat that forces a reply, the initiative has gone.
- **The defender has consolidated.** The pieces are back, the king has its cover and your extra attackers have been traded.
- **You have a lasting edge somewhere else.** A better pawn structure, an outpost or the bishop pair is worth more than a stalled attack.

A simple test helps. Before each attacking move, ask what you will play after the best answer. If you have a good follow-up, go ahead. If your only plan is to hope, play a quiet improving move, such as bringing the worst piece into play. Many of the best attacks start that way.

## Whose games teach you to attack?

Attacking is learned fastest from players who made it their trademark, and two world champions teach opposite things. Alexander Alekhine held the title from 1927 to 1935 and again from 1937 to 1946, and his games show every piece joining the attack until the defenders are tied down. Mikhail Tal, nicknamed the Magician from Riga, was champion in 1960 and lost the 1961 rematch. He often gave up material to keep the initiative, and many strong players found his ideas hard to refute at the board.

Replay one of their games a week, and stop before each sacrifice to name what it opens. Alekhine wrote notes on his own best games, Tal wrote an account of his career, and Vladimir Vukovic wrote a book on attacking methods regarded as a classic. Judge each idea you borrow with the five questions above.

## A lesson built on your attacking games

George Li starts a first lesson by reviewing your games and builds a written study plan from what he finds. Bring one attack that worked and one that failed, so the five questions can be tested on your own moves. You can [book your first lesson](https://georgelichess.com/book/first-lesson.md) at any time.

## Frequently asked questions

**Should beginners try to attack the king?**

Yes, in a limited way. Develop your pieces, castle, and then look for a safe attack on a king that has not castled or has weak pawns, checking every move for your opponent's threats first.

**Is it ever right to attack with fewer pieces than the defender has?**

Sometimes, when the defender's pieces are badly placed and cannot reach the king in time. The count is about reach, not just numbers: a queen and two pieces aimed at the king beat four defenders on the far side of the board.

**How do I tell an attack from a gamble?**

An attack follows from something you can name: a lead in development, an open line or a weak king. A gamble depends on the opponent missing a move. Ask whether the plan still works if the opponent finds the best defense.

**Which players should I study to learn attacking chess?**

Start with Alekhine for coordinated attacks and Tal for sacrifices that keep the initiative, and replay their games slowly.

**What should I do when my attack fails?**

Save the game and find the move where you gave up the initiative, often a trade that removed an attacker or a quiet move that gave the defender time. Marking it teaches more than any list of patterns.

## Book your first lesson

George Li reviews your games and builds a written study plan around them. [Book a lesson](https://georgelichess.com/book.md).

## Related

- [How to Defend a Worse Position in Chess](https://georgelichess.com/learn/defending-worse-positions.md)
- [Sacrifices in Chess: Types and Calculation](https://georgelichess.com/glossary/sacrifice.md)
- [Greek Gift Sacrifice: When Bxh7+ Works](https://georgelichess.com/glossary/greek-gift-sacrifice.md)
- [Opposite-Side Castling: Attack Plans](https://georgelichess.com/glossary/opposite-side-castling.md)
- [King Safety in Chess: What Keeps It Safe](https://georgelichess.com/glossary/king-safety.md)
- [Counterplay](https://georgelichess.com/glossary/counterplay.md)
- [Lesson packages and prices](https://georgelichess.com/pricing.md)
- [/book/first-lesson](https://georgelichess.com/book/first-lesson.md)
- [What Is a Kingside Attack in Chess](https://georgelichess.com/learn/what-is-a-kingside-attack.md)
- [The Opera Game: Morphy's 17-Move Lesson](https://georgelichess.com/learn/opera-game-morphy.md)
- [Attacking an Uncastled King: A Plan](https://georgelichess.com/learn/how-to-attack-an-uncastled-king.md)

## Related

- [How to Defend a Worse Position in Chess](https://georgelichess.com/learn/defending-worse-positions.md)
- [Sacrifices in Chess: Types and Calculation](https://georgelichess.com/glossary/sacrifice.md)
- [Greek Gift Sacrifice: When Bxh7+ Works](https://georgelichess.com/glossary/greek-gift-sacrifice.md)
- [Opposite-Side Castling: Attack Plans](https://georgelichess.com/glossary/opposite-side-castling.md)
- [King Safety in Chess: What Keeps It Safe](https://georgelichess.com/glossary/king-safety.md)
- [Counterplay in chess](https://georgelichess.com/glossary/counterplay.md)
- [Chess Lesson Prices: $150 First Lesson](https://georgelichess.com/pricing.md)
- [Chess First Lesson With IM George Li](https://georgelichess.com/book/first-lesson.md)
- [What Is a Kingside Attack in Chess](https://georgelichess.com/learn/what-is-a-kingside-attack.md)
- [The Opera Game: Morphy's 17-Move Lesson](https://georgelichess.com/learn/opera-game-morphy.md)
- [Attacking an Uncastled King: A Plan](https://georgelichess.com/learn/how-to-attack-an-uncastled-king.md)
