How to castle in Chess

Castling is one of the most useful special moves in chess. It lets you move your king to safety while also bringing a rook closer to the centre of the board.
What is castling?
Castling is a move where the king moves two squares toward a rook, and that rook jumps over the king to land beside it.
The sequence plays on a loop. Pause it anytime.
How to castle kingside
Walk through the moves at your own pace.
0/7How to castle queenside
Walk through the moves at your own pace.
0/9When are you allowed to castle?
You can only castle if all of these rules are true:
- Your king has not moved yet.
- The rook you are castling with has not moved yet.
- There are no pieces between the king and rook.
- Your king is not currently in check.
- Your king does not move through check.
- Your king does not end up in check.
Walk through the moves at your own pace.
Why is castling important?
In the opening, your king is usually safest tucked away behind pawns. Castling helps you do that quickly. It also connects your rooks, which makes them easier to use later in the game.
Some chess playerCastle early, then start playing with your whole army.
Kingside or queenside?
Kingside castling is usually faster and safer because fewer pieces need to move. Queenside castling can be more aggressive because the rook often lands closer to the centre, but the king may need extra protection.
Common beginner mistake
A common mistake is waiting too long to castle. If the centre opens while your king is still stuck in the middle, your opponent can often attack quickly.
Quick recap
Castling is a special move that improves king safety and activates a rook. You can castle kingside with O-O or queenside with O-O-O, but only if the king and rook have not moved, the path is clear, and the king is not moving through danger.
Can you castle if your rook is attacked?
Yes. The rook can be under attack and you can still castle, as long as the king is not in check, does not pass through check, and does not end in check.
Can you castle after being in check earlier?
Yes. As long as the king did not move, you can still castle later after the check is gone.
Can you castle if the king has moved and moved back?
No. Once the king has moved, castling is no longer allowed for the rest of the game.