Pora Games

Can you castle after being in check?

Yes, if your king and the rook used have never moved and all current castling conditions are satisfied. A previous check alone does not lose the right.

Compare two histories that reach the piece placement below. In both, White is to move and e1, f1 and g1 are safe. The king and h1 rook stand on their starting squares. Does that alone tell you whether White can castle kingside? First decide what you need to know about earlier moves.

Complete chess board after histories A and B: White king e1 and rook h1, clear f1 and g1, White knight c3 blocking Black bishop b4. The full legal histories in the text establish different castling rights.
White to move. Both histories reach this same piece placement; only A retains White’s castling rights. Full move histories and answers follow.

A: the check was blocked. Black's bishop gave check from b4, and White replied c3, putting a pawn in its path. After Black captured that pawn, White's knight recaptured on c3 and kept the diagonal blocked. White's king and h1 rook have never moved. White may now castle kingside: f1 and g1 are empty, and the king's starting, crossing and landing squares are safe. The king goes from e1 to g1; the rook goes from h1 to f1.

The complete legal history for A is: 1. e4 e5 2. Nf3 Nc6 3. d4 exd4 4. Bc4 Bb4+ 5. c3 dxc3 6. Nxc3 Nf6. Stop after 4...Bb4+. Can White castle now? No. The bishop attacks the king on e1 along b4–c3–d2–e1. White can block with 5.c3 without moving the king or rook. After 5...dxc3 6.Nxc3 Nf6, White can castle with 7.O-O.

B: the king moved and returned. After the same check from b4, White instead moved the king to f1 (Kf1). White later blocked the diagonal and returned the king to e1. The final pieces are placed exactly as in A, but White may not castle on either side: the first king move permanently lost both rights. Returning to the starting square does not restore them.

The complete legal history for B is: 1. e4 e5 2. Nf3 Nc6 3. d4 exd4 4. Bc4 Bb4+ 5. Kf1 Nf6 6. c3 dxc3 7. Nxc3 Ng8 8. Ke1 Nf6. Compare the king moves Kf1 and Ke1 with A's blocking reply. The board shows where the pieces are now; the move history determines which castling rights remain.

Check the present position too. Castling cannot answer a check that is happening now, cross an attacked square or finish in check. No piece may stand between the king and the rook used. For White's kingside castling, f1 and g1 must be empty and e1, f1 and g1 safe. A past check resolved by a block or capture can leave rights intact if neither the king nor that rook moved.

Self-check: start from A and add 7. Rg1 Ng8 8. Rh1 Nf6. The same pieces again occupy the same squares. May White castle kingside? No: moving the h1 rook lost the right to castle with that rook. White still retains the queenside right because the king and a1 rook never moved, but the queen on d1 and bishop on c1 currently block that path.

These examples follow FIDE Laws of Chess Articles 3.8.2.1 and 3.8.2.2: movement loses castling rights, while current check, attacked king-route squares and intervening pieces prevent castling in the current position. Ask two separate questions: do the historical rights remain, and are all present conditions satisfied?

Choose Chess below to practise in a regular game. Before castling, review your king's and rook's earlier moves as well as the squares in front of the king.

Try it in the game

Chess

Play now