You cannot castle if the king has already moved, or if the rook in question has moved. However, you can castle with a rook that is under attack at the time, and the rook can pass through an attacked square when castling while the king cannot.
Can you castle after losing a rook?
Castling is not possible if either the King or the Rook has moved. In the diagram the King cannot castle Queen’s side because the Rook has moved. All of the squares between the King and the Rook must be empty.
When is castling allowed on the King’s Square?
This applies to the king’s square, plus the two squares to the right or left. Castling is permitted when the rook is under attack (on the rook’s square). On the queen side, that would also include the knight’s square. But not on the kingside, because the king would be castling into check.
Do you have to move the rook when you do castling?
When the two-square king move is completed, however, the player is committed to castling (if it is legal), and the rook must be moved accordingly. A player who performs a forbidden castling must return the king and the rook to their original places and then move the king, if there is another legal king move, including castling on the other side.
Can a chosen rook move through an attacked square?
To clarify: The chosen rook may be under attack. The rook may move through an attacked square, provided the king does not. (The only time this can happen is when castling queenside and the only such square is the one adjacent to the rook.) The king may have been in check earlier in the game, provided the king did not move when resolving the check.
What are the rules for castling in chess?
The King and the Rook did not make any moves so far. The King is not in check. The King will not pass a threatened square during castling. The King will not land on a threatened square. Condition 3 might need clarification. For example, you have the white pieces and you want to castle kingside.