
Castling is a special move in which the king moves two squares toward a rook and that rook jumps over to the square the king crossed. It is the only move where two pieces move at once, and it can be done only once per player in a game. It tucks the king away and brings a rook into play, which is why most players aim to do it early.

The Two Kinds
- Kingside castling uses the rook in the corner nearest the king. The king goes two squares toward it, and the rook lands on the other side of the king. Notation: O-O.
- Queenside castling uses the far rook. The king still moves two squares, and the rook hops to the square the king crossed. Notation: O-O-O.
For White, the king begins on e1. After kingside castling it sits on g1 with the rook on f1. After queenside castling it sits on c1 with the rook on d1. Black mirrors this on the eighth rank.
Conditions You Must Meet
Every one of these must be true at the time you castle:
- The king has not moved earlier in the game.
- The rook you are using has not moved earlier in the game.
- All squares between the king and that rook are empty.
- The king is not in check.
- The king does not pass through a square attacked by an enemy piece.
- The king does not land on a square attacked by an enemy piece.
Things That Do Not Stop Castling
Some players think more is forbidden than the rules say. A few clarifications help:
- Having been in check earlier does not matter, as long as the king did not move to escape it and is not in check now.
- On queenside castling, the rook may cross an attacked square. Only the squares the king uses matter.
- If the other rook has moved, you can still castle with the unmoved one.
Quick Reference
| Side | King path (White) | Rook path (White) | Squares that must be empty |
|---|---|---|---|
| Kingside | e1 to g1 | h1 to f1 | f1, g1 |
| Queenside | e1 to c1 | a1 to d1 | b1, c1, d1 |
For Black the files are the same and the rank is the eighth: the king goes from e8 to g8 or c8, and the rook from h8 to f8 or from a8 to d8.
Making the Move Over the Board
Touch the king first and move it two squares, then move the rook. In formal play, touching the rook first can be treated as a rook move instead, so always begin with the king.
When you plan to castle, make sure the squares are clear before you need them. Moving the bishop and knight out of the way early is the usual habit, and it keeps the option available.
Walkthrough: A Checklist Before You Castle
Run through these questions in order. If any answer is no, castling is not available on that move.
- Has my king moved at any point in the game, even if it went back to e1 later? If yes, castling is gone for the rest of the game on both sides.
- Has the rook on that side moved or been captured? Even a rook that left its corner and returned is no longer eligible.
- Are all squares between the king and the rook empty? For kingside these are f1 and g1. For queenside they are b1, c1 and d1.
- Is my king in check right now? Look along ranks, files and diagonals, and check for knights and pawns.
- Does an enemy piece attack the square next to my king that it must cross (f1 or d1 for White)?
- Does an enemy piece attack the square where the king will land (g1 or c1 for White)?
- If all six are fine, move the king two squares and then place the rook on the square the king crossed.
Develop a habit of doing this check when you plan to castle, not just when you execute it. Spotting a blocker or a long-range attacker one move earlier gives you time to fix it.
Common Scenarios
An enemy bishop watches f1
If a black bishop on the a6-f1 diagonal attacks f1, White cannot castle kingside, because the king would pass through an attacked square. Moving a defender, blocking the diagonal or capturing the bishop restores the option.
An attacked b1 square on queenside
Only the squares the king crosses or lands on must be safe. The b1 square must be empty, but it can be attacked, and castling is still legal.
Castling gives check
After castling, the rook may attack the enemy king. This is legal and sometimes a strong idea, since it brings the rook to the center file or an open file with tempo.
Check, then castling later
If you are in check, you cannot castle that move. After you answer the check without moving your king or rook, castling can be legal again on a later turn.
Mistakes to Avoid
- Moving the king for a minor reason. A single king move, even a step and back, ends your castling for the rest of the game.
- Pushing the rook pawn and moving the rook without planning. Moving the rook loses the right on that side.
- Castling into an attack. After castling, make sure the pawn shield and key defenders are in place, since the king now stands in a known spot.
- Trying to castle in two separate moves. In a game, castling is one move, made as a single turn.
- Forgetting that a captured rook cannot be used. If the opponent captures your corner rook, that side is no longer available.
Quick Troubleshooting
| Symptom | Likely cause | What to try |
|---|---|---|
| Software or opponent says castling is illegal | King or rook moved earlier, or a square is attacked | Walk through the six conditions in order |
| Cannot castle queenside | b1 square still occupied | Move the knight and bishop, and the queen if she is on d1 |
| King feels unsafe after castling | Pawn shield moved or weakened | Avoid pushing the pawns in front of the king without a reason |
| Rook not connected after castling | Pieces still on the back rank | Develop the remaining minor pieces and the queen |
Glossary
- Kingside: the half of the board containing the kings, files e to h.
- Queenside: the half of the board containing the queens, files a to d.
- Back rank: the first rank for White or the eighth rank for Black.
- Pawn shield: the pawns in front of a castled king.
- Castling rights: the permission to castle, lost if the king or relevant rook moves.
- Tempo: one move, or a gain of time in the game.
FAQ
Can I castle out of check?
No. If your king is in check you must deal with the check in another way. You also cannot castle through or into an attacked square.
Why castle early?
It moves the king behind a shield of pawns and connects your rooks. Most players do it within the first dozen moves.
Can I castle if my rook is under attack?
Yes. The rule applies to the squares the king uses, not to the rook. Your rook may be attacked, and castling is still allowed.
If I move my king and move it back, can I castle?
No. Once the king has moved, even for a single move, the right to castle is gone for the rest of the game. The same applies to a rook that has moved.
Can I castle on either side every game?
Only if the conditions on each side hold. You may castle once per game, so choosing the side matters. Many players prefer the kingside because it needs fewer pieces moved.
The Short Version
Castling moves the king two squares toward a rook, which then crosses over. It needs an unmoved king and rook, empty squares between them and no attack on the squares the king uses. Run the checklist before you plan it.