ChessPivot
A black and white checkered board with buttons on it

Castling

Opening

Photo : Alexander Mils
Opening

Castling is a special chess move that allows the king to find safety while activating a rook, all in a single turn.

The move is executed by shifting the king two squares toward one of its rooks, which then jumps to the square immediately on the other side of the king. It is the only move in chess that moves two pieces at once. Kingside castling (O-O) brings the king to g1 (or g8 for Black) and the rook to f1 (or f8); queenside castling (O-O-O) brings the king to c1 (or c8) and the rook to d1 (or d8).

Several conditions must all be met: neither the king nor the rook involved may have moved previously; the king must not be in check at the moment of castling; the squares the king crosses and the square it lands on must not be attacked by the opponent; and all squares between the king and the rook must be empty.

In practice, castling early is one of the core principles of the opening. A king left in the center is a constant target, especially in open positions where files open up quickly. Aiming to castle within the first ten moves is a habit that prevents many tactical disasters.

How to exploit it — and defend against it

To make the most of castling, do so as soon as your minor pieces are developed — typically between moves 5 and 10. Avoid pushing the pawns in front of your king after castling kingside, as this weakens his pawn shield. If your opponent delays castling, look to open files in the center or on their king’s flank to attack before they find safety. Pay close attention to castling rights: accidentally moving the king or the relevant rook and losing the ability to castle is one of the most common mistakes among players under 1400.

8
7
6
5
4
3
2
a1
b
c
d
e
f
g
h
White can castle kingside (O-O): the king moves to g1 and the rook comes to f1, escaping the dangerous open center.

Learn more

Related terms

Frequently asked questions

Can you castle while in check?
No. Castling is not allowed if the king is currently in check. You must first deal with the check by another move, which may cost you castling rights if you are forced to move the king.
Can you castle if the rook is under attack?
Yes. Unlike the king, the rook may be attacked or pass through a square controlled by the opponent without preventing castling. Only the king’s path matters.
Do you lose castling rights if you move the rook and then return it to its original square?
Yes. As soon as a rook has moved, the right to castle on that side is permanently lost, even if the rook later returns to its starting square.

Analyze your games for free

Spot your recurring mistakes and turn them into progress with ChessPivot.

Analyze my games