Attacking the king in chess is a skill you can learn. Master opening lines, classic sacrifices, and how to count attackers to launch a winning assault.
Attacking the king in chess is the most thrilling part of the game, and contrary to what beginners think, it is a skill you can learn rather than a talent you are born with. A successful attack is not a wild flurry of checks; it is the methodical process of opening lines toward the enemy king, gathering your pieces near it, and overwhelming its defenders faster than they can regroup. Master that method and you will win games that quieter players only draw.
In this guide we will cover how to open lines to reach the king, the classic sacrifices that tear a castled position open, the simple arithmetic of counting attackers against defenders, and how the same assault plays out against the General in Xiangqi. The theme throughout is preparation: great attacks are built move by move, not conjured out of nothing.
Open Lines to Reach the King
An attack needs roads, and those roads are open files and diagonals pointing at the enemy king. A king tucked safely behind an intact pawn shield is nearly impossible to reach; the attacker's first job is to pry that shelter open. Against a castled king, this usually means advancing your own pawns to trade off the shield pawns, cracking the wall so that your rooks and queen can pour through.
The pawn storm is the classic tool for this, and it works best when your king is castled on the opposite wing, so that pushing your pawns forward does not endanger your own monarch. You march the pawns at the enemy king, force exchanges, and open a file for your rooks. Even one open file next to the enemy king can be enough for a decisive invasion once your heavy pieces line up behind it.
Diagonals matter just as much. A bishop raking a long diagonal toward the castled king, or a queen and bishop battery aimed at a weak square near it, creates threats that pawns alone cannot stop. The principle is constant: before you can checkmate a king, you must first build a road to it, and opening lines is how that road gets paved.
Sacrifices That Crack the King Open
Sometimes the pawn wall will not fall to ordinary moves, and that is when a sacrifice earns its keep. The most famous is the Greek gift, the classic bishop sacrifice on h7. When the conditions are right, White gives up a bishop to check the castled king, drags it out of its shelter with a knight and queen following, and hunts it down in the open. It is not a gamble but a calculated combination that recurs in thousands of games.
The idea behind every such sacrifice is the same: material is worth giving up if it removes the king's defenders or shatters the pawns that protect it. A knight or bishop thrown into the shield can open a file, expose the king to your heavy pieces, and turn a small material investment into an unstoppable attack. The exposed king, cut off from help, is often worth far more than the piece you paid for it.
Sacrifices demand calculation, not hope. Before you give up material, you must see that the follow-up actually delivers, that the king cannot simply run to safety or that a defender cannot cover the key square. When the lines check out, a well-known sacrificial pattern is one of the most reliable ways to convert a build-up of pressure into a finished attack.
Count Your Attackers
The single most practical attacking rule is to count. An attack succeeds when you can bring more attackers to bear on the king than the defender can bring defenders, so before committing you should literally tally the pieces each side can throw into the fight. If you have a queen, two rooks, and a bishop aimed at the king while the defender has only a lone knight guarding, the assault will usually break through.
This leads to the golden rule of attacking play: bring all your pieces into the attack. A queen that charges in alone is easily repelled, but a queen supported by rooks, a bishop, and a knight is overwhelming. A common beginner error is to attack with one or two pieces while a rook sits idle in the corner. The slower, fuller build-up, with every piece contributing, is almost always the stronger one.
Counting also tells you when not to attack. If the defender can meet each of your attackers with a defender of their own, the assault will fizzle and leave you overextended. Patience is part of aggression: sometimes the right move is to bring one more piece into play, improve your worst attacker, and only then strike, when the numbers are firmly in your favor.
Crossover: Hunting the General in Xiangqi
Attacking in Xiangqi follows the same logic with sharper edges. The General is boxed inside the tiny palace, which makes it easier to trap once you break through, so attacks often revolve around removing its defenders. Just as a chess attacker sacrifices to strip the pawn shield, a Xiangqi attacker aims to eliminate the Advisors and Elephants, because a General shorn of its guards is desperately vulnerable inside its little box.
The Cannon gives Xiangqi a weapon with no chess equivalent: it captures by leaping over a screen piece, so batteries of Cannon and Chariot pointed at the palace create threats that feel almost magical to a chess player. And the flying general rule means a cleared central file can end the game outright, since the two Generals may never face each other directly. Counting attackers versus the palace defenders is every bit as important here as it is in chess.
Across both games the attacking recipe rhymes: open the lines to the enemy ruler, remove the pieces guarding it, bring more force than the defense can muster, and be ready to give up material when it buys a decisive breakthrough.
Put It Into Practice
A winning attack is built, not improvised. Open a road to the king, learn the classic sacrifices that crack a shelter, and above all count your attackers against the defenders before you commit. Do that consistently and your bold games will start to finish with checkmate instead of regret.
Sharpen your attacking eye on XiangqiPlay, where the confined General rewards clean, forceful play and the Cannon adds a whole new dimension to the hunt. Play a few games, practice stripping the palace guards, and watch the attacking instincts you build carry straight back to the chessboard.