Opposite-side castling: how to play when the kings are on different wings
By ChessHut · 2026-12-06
Most games are played with both kings on the same side of the board. When one player castles short (kingside) and the other long (queenside), the game changes character. The kings are now far apart, each army has a free side with no enemy king to worry about, and both players can throw pawns forward at the enemy king without weakening their own. Players call it a race. It is one of the most exciting types of position, and one of the easiest to lose if you do not know the idea.
If you need to refresh how castling works first, read how to castle. For the attack itself, how to attack the king covers the basics.
Why it is a race
With the kings on the same side, an attacking pawn push such as g4 or h4 also weakens your own king. With opposite-side castling your pawns on the other wing are free to move: they are not shielding anything. So the standard plan for both players is:
- Push the pawns on the side where the enemy king is to open files and diagonals (a pawn storm).
- Bring the rooks and queen to those open files.
- Do not waste time on defence unless the attack is about to land. A defensive move is a move your opponent uses to push another pawn.
The side that is faster usually wins. This is why counting is more important than long-term strategy: how many moves does my attack need, and how many does theirs?
An example: the Yugoslav Attack
The best-known opposite-castling position comes from the Dragon Variation of the Sicilian Defence. White castles long and attacks with the h-pawn; Black has a fianchettoed bishop on g7 and uses the open c-file.
Look at what each side is doing. White has castled long and is pushing h4 (with Bg5, and later g4 and h5) to open the h-file against the black king on g8. Black has the half-open c-file and uses it: the rook comes to c5, the knight to c4 or e5, and Black wants to break through against the white king on c1 with ...Rxc3, ...a5 and ...b5. Neither side defends: they race.
Stockfish 19 at depth 22 rates this position about +0.54 for White after 13...Rc5, a small edge: dangerous for both, with White slightly ahead in the race. The engine's main continuation is 14.Kb1 Nc4 15.Bxc4 Rxc4 16.Qd3, where White tidies the king before continuing.
A quieter example: the same castling, less sharp
You can play against opposite-side castling without playing the sharpest line. After White's long castling in the Dragon with the knight on c6, Black can strike in the centre with ...d5 and fight for the middle before the storm arrives:
About +0.48 for White at depth 22: still a slight edge for White, but Black has hit the centre before the pawn storm starts. A central counter-strike is the best answer to a wing attack: if the centre is open, a wing attack often fails.
Another example: the English Attack
The same idea appears in the Scheveningen and Najdorf. Here is a typical position, with White castled long (Be3, f3, Qd2, O-O-O) and Black castled short:
About +0.59 for White (Stockfish 19, depth 20). In this position, White will play g4, h4, g5, and Black will push ...b5 and ...Rb8 on the other side. Each player will have to use their tempi well: the faster attack wins.
Rules of thumb for the race
- Count the moves to mate. If your attack needs three moves and theirs needs four, keep attacking. If theirs needs two and yours three, defend or counter first.
- Pawns first, pieces second. Pawn pushes open the lines; once a file is open, bring a rook. A pawn that is a move from the king is usually worth a sacrifice.
- Keep the pieces that attack the king. Do not trade your queen, your best attacker or the bishop that points at the king: trade the enemy's defenders instead. Keep the knight that covers the key square.
- Use the centre as your shield. If the centre is closed, you can attack on the wing. If it is open, your own king may be in danger, so look at the middle first.
- If you are being attacked, counter-attack. The best defence in a race is often to start your own faster attack, not to wait. Sometimes a quick central break (a pawn on d5 or e5) changes the race.
- When ahead in the race, do not slow down. Take the pawn that opens the file, not the pawn that wins material but gives the other side a move.
Common mistakes
- Moving the pawns in front of your own king. The pawns next to your king are its shield. Push the pawns on the other wing, towards the enemy king, and leave your own shield alone unless the attack needs it.
- Castling into an attack without a plan. If the opponent has a strong centre and you castle where their pieces point, you will be the one defending.
- Trading queens in a race. Without queens, most attacks lose their force. If you are the attacker, keep the queens on; if you are defending, try to trade them.
- Defending too early and too passively. A tidy king move (like Kb1) is good when it costs you nothing, but a defensive pawn move can lose the race.
How to practise
- Play through the lines above on the analysis board and see how the engine reacts when you change a move.
- Read the opening guides for the Dragon, Najdorf and Scheveningen: they all use opposite-side castling.
- Review your own games with the analysis checklist and look for the move where the race was lost.
- Practise attack patterns with tactics for beginners and the puzzles.
Frequently asked questions
What is opposite-side castling?
It is when one player castles kingside (short) and the other castles queenside (long). The kings are far apart, and both players can attack with pawns without weakening their own king.
Is opposite-side castling good for beginners?
It is exciting but demanding. The positions are sharp and a single slow move can lose. It is a good way to learn how to attack, but expect to lose some races at first.
Who is better in a race?
The one who is faster. Count the moves each side needs to open the files and mate. If you are slower, look for a way to slow the opponent (a check, a counter-attack, a central break).
Which openings lead to opposite-side castling?
The best known are the Sicilian lines in this article: the Dragon with the Yugoslav Attack, and the Najdorf and Scheveningen with the English Attack. In all of them White castles long and Black castles short.
Should I castle on the same side as my opponent?
If you prefer safe, strategic games, yes. If you like attacking, opposite-side castling is where the attack happens.