Rules and notation
Castle through the correct squares
For White to castle queenside, e1, d1 and c1 must not be attacked, and b1, c1 and d1 must be empty. An attack on b1 or on the rook does not by itself prevent castling.
Worked example
Position in text
White to move. White: rook a1, king e1. Black: rook b8, king h8.
FEN: 1r5k/8/8/8/8/8/8/R3K3 w Q - 0 1
White’s king and a1-rook have never moved. Black’s b8-rook attacks b1, but White can castle: the king travels e1–d1–c1 and never touches b1. The rook finishes on d1.
A plausible mistake
Do not treat every square between the pieces as part of the king’s journey. A piece on b1 prevents castling; an attack on an empty b1 does not.
Try it yourself
Position in text
White to move. White: rook a1, king e1. Black: rook d8, king h8.
FEN: 3r3k/8/8/8/8/8/8/R3K3 w Q - 0 1
Black’s rook moves from b8 to d8 in the second diagram. Is queenside castling still legal even though c1 is safe?
Check your answer
No. The king would cross d1, which the d8-rook attacks. Leaving e1 and arriving on a safe square does not excuse crossing an attacked one.