The idea

Castling moves the king and one rook in a single move. In standard chess, the king moves two squares towards that rook and the rook moves to the square the king crossed. Kingside castling is written O-O; queenside castling is O-O-O. It coordinates the rooks and often improves king safety, but it does not make an exposed position safe on its own.

Neither the king nor the chosen rook may have moved before, even if they returned to their original squares. No pieces may stand between them. The king cannot start in check, cross an attacked square or finish in check. An attack on the rook alone does not forbid castling. Chess960 starts differently: use its specific guide for the king’s route.

Practise this concept
White to move with both castling rights. After O-O, the king goes from e1 to g1 and the rook goes from h1 to f1.
White to move with both castling rights. After O-O, the king goes from e1 to g1 and the rook goes from h1 to f1.

Illustrative continuation:O-O

How to recognise it

  • O-O leaves White’s king on g1 and rook on f1.
  • O-O-O leaves White’s king on c1 and rook on d1.
  • A king that moved away from e1 and returned has already lost its castling rights.

Common questions

Can I castle out of check?

No. You must first answer the check with a different legal move.

May the rook be under attack?

Yes. The requirements concern rights, a clear path and the king’s starting, crossing and destination squares.

Can I castle after moving a rook?

Not with that rook. The other rook may retain its right if neither it nor the king has ever moved.

Is it identical in Chess960?

Do not apply the standard starting displacement literally. The final squares match, but the pieces can start elsewhere.

Explore openings

Rules and context

The rules are the reference; the positions and explanations are original NoManChess examples.

FIDE Laws of Chess