Learn Chess
Castling in Chess Rules and How to Castle
Castling in chess is one of the first special moves every player needs to learn. If you don't know the rule yet, or you're not sure when to use it, you're in the right place.
In this guide, here's what we cover.
- The rule itself.
- A quiz to test yourself.
- Three strategic tips tied to castling.
- An example of checkmate delivered by castling.
What Is Castling in Chess?
Castling is a special move in chess that involves the king and one of the rooks. It does two important jobs in a single move. It gets your king to safety and brings a rook into play. During castling, the king moves two squares toward the rook, and the rook swings around to land right next to it, on the other side.
There are two types of castling, kingside and queenside. Kingside castling happens on the king's side of the board and is quicker to set up, since the rook only has one square to cross. Queenside castling happens on the queen's side and takes a little more setting up, since there's one more square to clear between the king and the rook, and the rook has further to travel. For castling to be legal, a few conditions have to be met, and we'll walk through those right now.
How to Castle in Chess
Castling is the only move in chess where two pieces move at the same time, the king and a rook. The goal is simple. Get your king to safety.
The Castling Chess Rules in Short
Here's what has to be true before you can castle.
- Neither the king nor that rook has moved yet this game.
- All the squares between them are empty.
- The king is not currently in check, and it does not pass through or land on a square attacked by an enemy piece.
- The rook is a different story. It can be under attack, and it can cross a square the enemy controls, without any of that making the move illegal.
When all four conditions hold, you move the king two squares toward the rook, and the rook lands right next to it on the other side.
Castling belongs to a small family of special chess rules, alongside stalemate and en passant.
The King and Rook Trade Places
Take a close look at the position below.
It's White to move, and every condition for castling is met. So White moves the king two squares toward the rook on h1 (if you want a refresher on the basics first, see our guide on how the king moves in chess), and that rook swings around to land right next to it, on the other side.
Just like this.
What you've just seen is kingside castling. There's also queenside castling, where the king heads toward the other rook, the one on the queenside. When one player castles kingside while the other castles queenside, we say the two sides have castled on opposite wings. Opposite side castling has a big impact on strategy, and we cover that in detail in our guide to queenside castling.
Why Can't I Castle?
Here's a position where neither side can castle right now.
Let's start with White. The squares look clear, and the king isn't in check. Even so, White can't castle, because the black bishop controls the f1 square, the very square the white king would have to cross to castle kingside. The king is never allowed to pass through a square where it would be in check.
Now let's look at the black king. Black can't castle kingside, because the rook on g8 has already moved. That means kingside castling is off the table for the rest of the game. Queenside castling is still available though. Once Black moves the queen out of the way, Black will be able to tuck the king to safety with queenside castling.
Test Your Castling Knowledge
Time for a quiz. Can White castle in each position, or not? It's your turn to decide.
Kingside Castling vs Queenside Castling
In chess, kingside and queenside castling are the two special moves that involve the king and a rook. Kingside castling, sometimes called short castling, moves the king two squares toward the rook on its right for White (or its left for Black), and that rook lands on the square right next to the king. Queenside castling, sometimes called long castling, moves the king two squares toward the rook on its left for White (or its right for Black), and that rook lands on the square right next to the king on the other side. Here are the main differences between the two.
1. Safety. Kingside castling is usually considered safer than queenside castling, since the king ends up further from the center and fewer squares need to be cleared for the move to be legal.
2. Preparation. Queenside castling usually takes more preparation than kingside castling, because more pieces, the queen and the queenside bishop in particular, need to move out of the way first.
3. Strategic purpose. Both types of castling protect the king by tucking it into a corner that's harder for the opponent to attack. They can also be used strategically to bring a rook toward the center or onto a half open file.
Each type of castling has its own strengths and risks, and the choice between kingside and queenside castling usually comes down to the specific position on the board and each player's plans.
Why Castle in Chess?
Here's why the rule of castling matters so much in chess.
Castling and Opening Strategy
First of all, castling is one of the main goals of a good chess opening, since it's what gets your king to safety. Here's our checklist of the core ideas to follow when you open a game.
1. Control the center of the board with your pawns.
2. Develop your minor pieces (knights and bishops) toward the center, and avoid moving the same piece twice without a good reason.
3. Don't bring your queen out too early.
4. Get your king to safety by castling.
5. Connect your rooks and place them on open files.
Stick to these principles and you'll be able to handle pretty much any opening situation. If you want to go deeper, our complete guide on how to play chess walks you through it step by step.
Don't Weaken Your Castled King's Pawns for No Reason
If you've been following along, you know the whole point of castling in chess is to keep your king safe. That means you should only move the pawns in front of your king when you have a good reason to. Here's an example of a fatal weakening of a castled position.
On the white side, the pawns in front of the king haven't moved. That castled position is rock solid. Black, on the other hand, pushed the pawn to g6, seriously weakening the kingside. White can take advantage right away by playing Qh6, threatening mate on g7 next move, the pattern known as the kiss of death.
Opposite Side Castling
When one side castles kingside and the other castles queenside, the two kings end up on opposite sides of the board, and pushing your own pawns forward stops being risky and becomes a real attacking weapon. It's a sharp, double-edged setup, and we cover the attacking plans in full in our guide to queenside castling.
This position comes from one of the best known openings among players who like sharp, double-edged positions, the Sicilian Dragon, with White castled queenside and Black castled kingside.
Can Castling Deliver Checkmate?
Absolutely. Castling is a move like any other, and when the rook lands on its new square, it can attack the enemy king just as decisively as any other move.
Look at the diagram below. White to move and win.
Black's king went on an adventure and ended up on White's back rank. Believe it or not, this kind of thing has actually happened in serious games.
White has a single move that delivers mate. Can you spot it?
It's castling.
That's a lovely mate delivered straight off the back rank by the rook. For it to work, of course, neither the king nor the rook on h1 can have moved at any point in the game.
Can a Rook Jump Over a King?
Under the official rules of chess, a rook can never jump over any piece, whether it's a king or anything else. Unlike the knight, which is the only piece that can jump over other pieces on the board, the rook is limited to moving in a straight line along a file or a rank, and it can't pass through an obstacle. That means if any piece blocks the rook's path, whether it belongs to the opponent or to the rook's own side, the rook simply cannot get past it.
It's easy to see why this question comes up with chess castling, given how unusual it looks on the board. Castling is a special move where the king and a rook move at the same time, under a specific set of conditions. But castling is not a jump at all. It's simply a coordinated exchange of positions.
Your Move
That wraps up our guide to castling in chess. Get comfortable with kingside and queenside castling, respect the conditions above, and you'll be tucking your king away safely in every game you play.