Castling is the only move in chess where two pieces, the king and a rook, move at once. Its purpose is to tuck the king into a safe corner and bring the rook into play. Most strong players castle within their first ten moves.
How to castle
The king moves two squares towards a rook, and the rook jumps over the king to land right beside it. There are two kinds:
- Kingside (O-O): king to g1, rook from h1 to f1. For Black, g8 and f8.
- Queenside (O-O-O): king to c1, rook from a1 to d1. For Black, c8 and d8.
The five conditions
- The king has never moved.
- The rook you castle with has never moved.
- There are no pieces between them.
- The king is not in check.
- The squares the king passes through and lands on are not attacked.
Even if the king moves and comes back, castling rights are gone. If a rook moves, only castling on that side is lost.
Kingside or queenside?
Kingside castling is quicker: you only need to clear the knight and the bishop, and the king ends up in a safer corner. Queenside castling needs the queen, bishop and knight out of the way, but it brings the rook straight to the central d-file. When the players castle on opposite sides the game often turns sharp, with both sides throwing pawns at the other king.
Why castle?
The centre opens up during the middlegame, and as files open for rooks and diagonals for bishops, a king left there becomes a target. Castling does two jobs in one move: it hides the king behind a pawn shield and connects the corner rook to the centre. Delaying it is one of the most common reasons beginners lose.
Common mistakes
- Moving the rook first. In online play always castle by dragging the king two squares.
- Weakening the pawn shield afterwards. Pushing the g- and h-pawns without reason leaves holes in front of your king.
- Waiting too long. Once the centre opens, postponing castling gets expensive.
Next special rule: en passant.
Can you castle out of check?
No. You cannot castle while in check, and the king may not pass through or land on an attacked square.
Can you castle if the rook is attacked?
Yes. The restrictions only apply to the king. An attacked rook, or an attacked b1 square when castling queenside, does not prevent castling.
Put it to work in a real game.
Play now