Skip to content
Back to the blog

Opposite-Side Castling in Chess: How to Win the Race

What changes when the kings castle on different wings, how pawn storms open lines, why every tempo counts and how to defend without losing the race.

By AcademiaTal8 min read

Opposite-side castling happens when one side castles kingside and the other queenside: the kings sit on different wings and the game turns into a race. Each player pushes pawns at the enemy king without exposing their own, and whoever opens a file first usually wins. The question is not who attacks, because both do, but who gets there first.

Why everything changes when the kings are apart

With both kings castled on the same side, pushing the pawns on that wing is risky for the player who pushes them: they are the same pawns that shelter their own king. That is why same-side castling games tend to be slower and revolve around the centre, weak squares and exchanges.

With opposite-side castling that brake disappears. If White has castled queenside and Black kingside, White's f, g and h pawns defend nobody: they can march towards the black king at no cost. The same goes for Black's a, b and c pawns against the white king. The rules of castling are the usual ones; what changes is what each pawn is for.

Three consequences explain almost everything that follows:

  • Time is worth more than material. A pawn given up to open a file one tempo earlier is usually a good deal. A pawn won at the cost of two moves can lose the game.
  • Passive defence rarely works. While one side defends, the other keeps attacking.
  • The centre rules. If the centre is closed, the race is run on the wings. If it opens, the side with better-placed pieces can cut the enemy attack short with a central blow.

The textbook example: the Yugoslav Attack

The position everybody associates with opposite-side castling comes from the Dragon Sicilian. White sets up Be3, f3 and Qd2 and castles long; Black has already castled short behind the g7 bishop:

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.O-O-O

The plans are symmetrical and direct. White wants h4 and h5 to open the h-file, and Bh6 to trade the g7 bishop, the main defender of the black king. Black plays down the half-open c-file with ...Qa5, ...Rc8, ...b5 and often the exchange sacrifice on c3 that wrecks the pawn cover of the white king. Both plans are covered in detail in our guide to the Dragon and in the article on the exchange sacrifice.

How pawns open lines

Pushing pawns is not attacking. The goal is to open a file in front of the enemy king so the rooks and queen can come in, and for that your pawns need something to hit.

The hook

A pawn advancing against an untouched structure — pawns on f7, g7 and h7 — can reach the sixth rank without opening anything: the opponent simply does not take it. What you need is a hook, an advanced enemy pawn your own pawn can attack. In the Dragon the hook is the g6 pawn: after h4-h5 Black must choose between taking on h5 or allowing hxg6 to open the h-file. The practical rule is to find the hook first and push the pawn that hits it.

Gaining tempi by attacking pieces

Without a hook, a pawn push works if it gains time. The typical case is the g-pawn against a knight on f6: g4-g5 drives it from its best square, and the king loses a defender exactly when it needs one. That is the idea of the English Attack against the Najdorf, where White throws the g-pawn forward even before castling: 1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6 5.Nc3 a6 6.Be3 e6 7.Qd2 b5 8.f3 Nbd7 9.g4 h6 10.O-O-O Bb7. Black replies with the same idea on the other wing: ...b5-b4 kicks the c3 knight, the piece that guards e4 and the squares around the white king.

Sacrificing to open

When an attack is one tempo short, a pawn sacrifice can win it back. If the opponent refuses to open the file by capturing, you offer a pawn they have to take, or give it up outright so that the capture opens the file. What you measure is not the pawn but the count: if that pawn gets your rook in one move before theirs, the sacrifice is justified.

Counting tempi: who gets there first

In an opposite-side race it pays to do a concrete count, even a rough one: how many moves each side needs to open a line in front of the enemy king and put a heavy piece on it.

Here is how the thinking goes, using the other main line of the English Attack, with 6...e5:

1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6 5.Nc3 a6 6.Be3 e5 7.Nb3 Be6 8.f3 Be7 9.Qd2 O-O 10.O-O-O

White has g4 and g5 ready; the g-pawn hits the f6 knight and has no hook in front of it, so the plan is to drive the knight away and follow up with h4 and h5. Black has ...b5 and ...b4 to kick the c3 knight, and the c-file for the rooks. Neither side is worse, but every wasted move — an unnecessary king move, a piece going back to where it came from — changes the result of the count. The two questions to ask on every move are: does my move bring my attack closer? and does theirs bring their attack closer?

Three details weigh on the count:

  • A move with a threat counts double. If your pawn push attacks a piece, the opponent loses a tempo moving it.
  • Pieces count as much as pawns. An open file with no rooks to use it is not an attack. The bishop aimed at the enemy king and the queen nearby are part of it too.
  • A check stops the race. An attack that gives check forces a reply, and while the opponent replies they are not attacking.

How to defend without losing the race

Defending is allowed, but it has to be cheap. The defences that work with opposite-side castling are those that slow the enemy attack by several tempi with a single move.

  • Block the advance. A pawn of your own placed in front of the attacking pawn can stop the storm. In the Dragon, ...h5 is a well-known move so that h4-h5 no longer opens the file by force.
  • Trade the attacking piece. If the opponent relies on a bishop or a knight for the attack, trading it can be worth more than any pawn push. That is why Black takes such care of the g7 bishop in the Dragon.
  • Strike in the centre. The best answer to a wing attack is often a central break: it opens lines for your pieces and leaves the advanced enemy pawns far from where the game is decided.
  • Tuck the king one square further. After castling long, Kb1 takes the king off the a7-g1 diagonal and the c-file. It is a slow move, so play it only when the threat on that square is concrete.

What almost never works is answering every pawn push with a defensive move. If one side stops attacking, the race has a single runner.

Typical mistakes with opposite-side castling

  • Pushing the pawns in front of your own king. Advancing the b or a pawn with your king castled long, just to "do something", hands the opponent the hook they were looking for.
  • Grabbing material that closes the line. Winning a pawn with a capture that leaves the file closed can stall your own attack. Before you capture, check which files remain open.
  • Attacking with pawns and forgetting the pieces. The pawns open the door; the rooks and queen walk through it.
  • Trading queens by reflex while attacking. With opposite-side castling the queen is the piece that punishes an open file fastest. If the attack is yours, a queen trade almost always helps the defender.
  • Ignoring the centre. A wing attack with an open, poorly controlled centre can end with a central blow that turns the game around in two moves.

How to study opposite-side castling

The fastest way to learn these positions is to see many games from the same structures: the Yugoslav against the Dragon, the English Attack against the Najdorf, the long-castling positions of the Caro-Kann and the Queen's Gambit. In each one, stop at the moment of castling and do the count: how many moves does each side need? Then play through the rest of the game and compare.

It also helps to play these positions against an opponent of similar strength, with time on the clock, and to analyse them afterwards: the tempo race is understood by playing it, not by reading about it.

The course Structures, Attack and Pressure devotes a lesson to opposite-side castling and to how the race is decided. To see grandmaster attacks with sacrifices and calculation, Masters in Action brings together six lessons on attack. Both are taught in Spanish with English subtitles. And if you have a game of your own where you could not tell who was winning the race, you can send it to Ask the GM.

Keep going with a free class

Open classTopalov–Shirov, Linares 1998: 47…Bh3!!with GM Alexei Shirov · 12 min · no account needed
Free with an account

Watch «Faustino Oro live» in full

1 h 3 min of recorded class. Create your free account, no card needed, and it stays in «Recordings» to watch whenever you like.

Frequently asked questions

What is opposite-side castling in chess?
It is when one side castles kingside and the other queenside, so the kings end up on different wings. Each player can push the pawns on the wing where the enemy king lives without weakening their own king.
Who wins with opposite-side castling?
Usually whoever opens a line against the enemy king first. That is why you count tempi: how many moves each side needs before a pawn hits the other structure and a file opens.
Should you defend when your opponent attacks with opposite-side castling?
Only if the defence is cheap. Every defensive move is one move less for your own attack, so the normal approach is to counter-attack and defend only when the threat arrives before yours or when one move slows the enemy attack by several tempi.
What is a hook in a pawn storm?
An advanced enemy pawn your pawns can hit. A pawn push only opens a file if it meets something; the g6 pawn of a fianchetto is the classic hook, because h4-h5 attacks it and forces the h-file open.

Courses that cover this

If you want to put this into practice with structured material:

All levels

Masters in Action: Attack, Calculation and Strategy

Six classes with GM Andrés Rodríguez, GM Diego Flores and IM Jorge Rosito to dive deep into attacking, sacrifices, calculation, strategy and dynamic openings.

By GM Andrés Rodríguez Vila, GM Diego Flores, and IM Jorge Rosito

6 lessons13 h 14 min6 Videos46 PGN games

Included in the membership

USD 30.00
View details
All levels

Structures, attack and pressure: resources for competitive chess

A six-stage course to master pawn structures, develop effective attacks and make better decisions in demanding positions.

By GM Andrés Rodríguez Vila and GM Diego Flores

6 lessons9 h6 Videos96 PGN games

Included in the membership

USD 25.00
View details

Keep reading

8 min read

Pawn Structures in Chess: The 6 You Will Meet Most

Carlsbad, isolated queen's pawn, hanging pawns, Maroczy Bind, closed centre and Stonewall: how to recognise each pawn structure and which plan it asks of each side.

Read the article