Rule

How Does Castling Work in Chess?

Castling moves the king two squares toward a rook and jumps the rook to the king's other side — the only move where two pieces move at once.

Definition

Castling is the only move in chess where you move two of your own pieces in one turn. The king travels two squares toward one of its rooks, and that rook hops over to the square immediately on the king's other side. It exists to solve two problems at once: getting the king to safety and bringing a rook toward the centre. Kingside castling (O-O) is short; queenside (O-O-O) is long.

Example

White's king is on e1 and rook on h1 with f1 and g1 empty. Playing O-O puts the king on g1 and the rook on f1 in a single move, tucking the king behind its pawns and activating the rook.

How to spot it

  • All squares between king and rook must be empty.
  • Neither the king nor that particular rook may have moved at any point.
  • You cannot castle out of check, through an attacked square, or into check.
  • The rook may be attacked, and the rook may pass through an attacked square — only the king is restricted.

The mistake most players make

Believing you cannot castle when the rook is attacked or has to cross an attacked square. Only the king's squares matter — a rook under attack does not prevent castling.

Frequently asked questions

When can you not castle in chess?

You cannot castle if your king or that rook has already moved, if any piece stands between them, if you are currently in check, if the king would pass through an attacked square, or if the king would end up in check.

Can you castle if the rook is under attack?

Yes. The restrictions apply only to the king's squares — the rook may be attacked and may travel across an attacked square. This surprises many players, especially when castling queenside where the rook crosses b1 or b8.

Should you castle kingside or queenside?

Kingside is safer and more common, because the king ends up better shielded and fewer pawns need to move. Queenside castling activates the rook faster and is popular when you want to attack on the kingside with your pawns, but the king is slightly more exposed on c1 or c8.

Related terms

Practise this pattern

Definitions stick once you have seen the pattern in a real game. Solve tactics puzzles to train recognition, review one of your games to find where it came up, or ask the coach to explain it in a position you are looking at.