Castling
A special move of king and rook: the king moves two squares to the side, and the rook moves to the other side of the king, right next to it. With the rook on h1 or h8 it is called castling kingside (O-O), with the rook on a1 or a8 castling queenside (O-O-O).
Example: In the game Nimzowitsch – Salwe, Carlsbad 1911, White castles kingside on move 8: the king moves from e1 to g1, the rook from h1 to f1. Black castles kingside later too.
Castling is the only move in which you move two of your own pieces at once: the king and a rook. Under the FIDE Laws of Chess it counts as a king move (Article 3.8.2).
Castling takes your king out of the centre to safety, and the rook comes closer to the centre. Each side can castle at most once in a game, because afterwards its king has moved.
Kingside and queenside
When castling kingside, the white king goes from e1 to g1, and the rook on h1 comes to f1. For Black, the king goes from e8 to g8 and the rook from h8 to f8. It is written O-O.
When castling queenside, the white king goes from e1 to c1, and the rook on a1 comes to d1. For Black, the king goes from e8 to c8 and the rook from a8 to d8. It is written O-O-O.
The rule is the same for both: the king moves two squares towards the rook, and the rook goes to the square the king has crossed. The FIDE Laws write 0-0 and 0-0-0 with zeros (Appendix C.13).
When you may castle
Castling is forbidden for good as soon as your king has moved. With one rook it is forbidden as soon as that rook has moved (Article 3.8.2.1). There is more about this under the term castling rights.
It is forbidden only for the moment in four cases (Article 3.8.2.2): if your king is in check, if it would have to cross an attacked square, if it would land on an attacked square, or if there is still a piece between the king and the rook.
What the rule allows
These bans do not apply to the rook. It may be attacked, and it may cross an attacked square. This matters when castling queenside: only the rook crosses b1, not the king.
In the diagram it is White to move. The knight on d2 attacks the squares f1 and b1. So castling kingside is forbidden, because the king would have to cross f1. Castling queenside is allowed: 1.O-O-O. The king cannot capture the knight, because the bishop on b4 protects it.
An earlier check does no harm either. If your king was in check once and did not move, you may still castle later.
How to castle at the board
Pick up the king first and put it down two squares further on. Then, with the same hand, place the rook next to it. Castling is complete as soon as the rook is on its new square and your hand lets go of it (Article 4.7.2).
If you touch king and rook, you must castle on that side if it is legal (Article 4.4.1). But if you touch the rook first and then the king, you may not castle on that side on this move, and you must move the rook if you can (Article 4.4.2).
Every move is made with one hand (Article 4.1). If you castle with two hands and press the clock, you get the same penalty as for an illegal move (Article 7.5.4).
When to castle
Players usually castle early, once the knight and bishop between king and rook have been developed. The king is then sheltered behind its pawns, and the rook can join in the play in the centre.
But this is not a fixed rule. Do not castle into an attack, for example when your opponent is already aiming pieces and pawns at that side. Sometimes you wait until you can see where the king will be safest.
See it on the board
Our own teaching example
White to move. The knight on d2 attacks f1, so castling kingside is forbidden. Castling queenside is allowed, because only the rook crosses b1.
White to move
White: Ke1, Ra1, Rh1, a2, b2, c2, f2, g2, h2. Black: Kg8, Bb4, Nd2, a7, b7, f7, g7, h7.
Common mistakes
- Touching the rook first. Then you may no longer castle on that side on this move.
- Castling out of check, or moving the king across an attacked square. Both are illegal.
- Believing that castling queenside is forbidden because b1 is attacked or the rook is attacked. Only the king’s squares count.
- Moving the king one square and back again, and then wanting to castle. The castling rights are then lost.
In these lessons
Main course
- Three special rules (main topic)
- A safe king (main topic)
You can also search for:castle · short castling · long castling · kingside castling · queenside castling · castles · castling short/long · artificial castling · castling by hand · O-O · 0-0 · O-O-O