Pora Games

Can you castle if your rook is attacked?

Yes, if castling rights remain, the space between king and rook is clear, and the king's starting, crossing and landing squares are safe.

Try four castling decisions. In each study, White is to move, every unlisted square is empty, and White's king and the rook used for castling have never moved. Predict the answer before reading the explanation.

White king e1 and rook a1; Black king h8 and rook b8. The open b-file reaches b1. White to move with queenside castling rights.
Case B: Black attacks b1. May White castle queenside? Every unlisted square is empty.

First separate empty squares from safe squares. For White's kingside castling, f1 and g1 must be empty, while e1, f1 and g1 must be safe. Queenside needs b1, c1 and d1 empty, while e1, d1 and c1 must be safe. An attack on b1 affects only the rook's route.

Case A: an attacked rook. White has a king on e1 and a rook on h1. Black has a king on b8 and a bishop on a8. Can White castle kingside? Yes. The bishop attacks h1 along a8-b7-c6-d5-e4-f3-g2-h1, but it attacks none of e1, f1 or g1. Castling puts White's king on g1 and rook on f1.

Case B: an attacked b1 square. White has a king on e1 and a rook on a1. Black has a king on h8 and a rook on b8. Can White castle queenside? Yes. The black rook attacks b1 along the open b-file. White's king travels from e1 through d1 to c1; all three squares are safe. White's rook finishes on d1.

Case C: change one attacker. Keep Case B's pieces, but put Black's rook on d8 instead of b8. Queenside castling is now illegal: the rook attacks d1, which White's king must cross. A safe destination on c1 does not make that crossing legal.

Case D: a pinned attacker. White has a king on e1 and rooks on c1 and h1. Black has a king on c8 and a bishop on c4. White retains kingside castling rights. Can White castle kingside? No. The white rook on c1 pins the bishop on c4 to the black king on c8 along the c-file. The bishop still attacks f1 along c4-d3-e2-f1, even though moving off the c-file would expose its king. White's king must cross f1, so castling is illegal. FIDE Article 3.1.3 counts that attack despite the pin; Article 3.8.2.2 forbids castling across the attacked square.

Self-check: return to Case B and add a White knight on b1. May White castle queenside? No. The knight blocks the space between the king and rook. Clear that piece, then check the king's route again. Also check the game's history: returning a moved king or rook to its starting square does not restore the lost castling right.

FIDE Articles 3.8.2-3.8.2.2 give the castling conditions. US Chess Rule 8C1 explicitly covers an attacked rook and the attacked b1/b8 squares.

Choose Chess below to practise in a regular game. When considering castling, trace your king's route and check its safety square by square.

Try it in the game

Chess

Play now