A chess board set up

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.

Replay

Watch the moves play out below. The sequence loops automatically — pause anytime.

0/1
8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h

How to castle kingside

Step through

Use the controls below to walk through the moves at your own pace.

0/7
8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h

How to castle queenside

Step through

Use the controls below to walk through the moves at your own pace.

0/9
8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h

When 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.
Step through

Use the controls below to walk through the moves at your own pace.

8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h

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.

Castle early, then start playing with your whole army.

— Some chess player

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.

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.

Yes. As long as the king did not move, you can still castle later after the check is gone.

No. Once the king has moved, castling is no longer allowed for the rest of the game.

Written by
Ryan Carmody

Avid Chess player, interested in how people learn how to play chess.