Castling in Chess
Castling is the only move in chess where you move two pieces at once: your king and one rook. It tucks the king into a safer corner and brings a rook toward the center. Most good players castle within the first ten moves.
How to castle
- Kingside (O-O): the king moves two squares toward the h-file rook, and the rook jumps over to the square on the king's other side. For White: king to g1, rook to f1.
- Queenside (O-O-O): the king moves two squares toward the a-file rook, and the rook lands next to it. For White: king to c1, rook to d1.

When you can castle
All of these must be true:
- Neither the king nor that rook has moved yet in the game.
- All squares between them are empty.
- Your king is not in check right now.
- The king does not pass through or land on a square attacked by an enemy piece.
Rules beginners often get wrong
- "My rook is attacked, so I can't castle." Wrong. The rook may be attacked; only the king's path matters.
- "On the queenside, b1 must be safe." Not true. The rook passes b1, but the king does not, so an attack on b1 does not stop queenside castling. (c1 and d1 must be safe.)
- "I was in check earlier, so I can never castle." Wrong. If the king never moved and you are not in check now, you can still castle.
- "I can castle with a rook that already moved and came back." No. Once a rook has moved, castling on that side is gone for good.
Kingside or queenside?
Kingside castling is quicker (only two pieces between king and rook) and the king ends up safer. Queenside castling puts the rook straight onto the d-file, which can be powerful, but the king is a step further from the corner. Beginners should usually castle kingside.
FAQ
Do I move the king or the rook first?
Move the king first. In Chess Hero, just tap the castling button when it appears.
Can I castle out of check?
No. Get out of check first.
Is castling written as 0-0 or O-O?
Both are correct. The FIDE rulebook uses zeros (0-0, 0-0-0), while computer notation (PGN) uses the capital letter O.
Related
En Passant · Stalemate · How to Play Chess
Castle in your next game
Play the AI and tap the castling button when it shows up.