Castling in chess is a special move allowing players to put their King in safety. This special occasion includes moving both the King and the Rook in one move. Once players castle, they put their King into a safe spot and activate their Rooks. There are two sorts of castling: the Castling Kingside (also called short castle) and the Castling Queen side (also called long castle). The Kingside Castling is notated as either “O-O” or “0-0”, and the Queenside Castling is notated as “O-O-O” or “0-0-0”.

The upper diagram shows a castling king side (“4. O-O” or “4. 0-0”)
- TL;DR
- How does Castling Work?
- Kingside vs Queenside Castling
- What are the Castling Rules?
- When Can You NOT Castle in Chess?
- Can You Castle Out of, Through, or Into Check?
- Castling out of check
- Castling through check
- Castling into check
- Benefits of Castling
- When Should You Castle in Chess?
- Common Castling Mistakes to Avoid
- 1. Castling with two hands
- 2. Castling into checkmate
- 3. Castling the wrong side
- Conclusion
- Frequently Asked Questions (FAQ)
- What does castling mean in chess?
- When was castling added to chess?
- Is castling allowed in chess?
- Can you castle on both sides in chess?
- Can you castle out of check?
- When can you not castle?
- Is kingside or queenside castling better?
- What is the difference between O-O and O-O-O?
TL;DR
- Castling is the one move where you shift your King to safety and bring a Rook into the game at the same time. You move the King two squares toward a Rook, and that Rook jumps to the King’s other side. Kingside is O-O (short castle), Queenside is O-O-O (long castle).
- You can castle only if all four conditions are true: the King and that Rook have never moved, no pieces sit between them, the King is not in check, and the King does not pass through or land on a square an enemy attacks. You can castle once per game on one side only. A Rook under attack still allows castling; the King’s squares are what matter.
- Castling early is a core opening principle because it protects the king behind a pawn shield and at the same time finally brings a rook into play, which is otherwise hard to activate from the corner.
- Typical mistakes include using two hands over the board, castling straight into an attack, or castling to the wrong side just because “you’re supposed to castle,” without checking if that side will get mated.
- In short, castling is legal and standard at every level, but it’s only good if the king is actually safe after you do it, so you still have to evaluate the position.
- To see how each rule works in practice, keep reading the article.
How does Castling Work?
It is performed by first moving the King two squares towards the rook on the first rank and placing the Rook on the one square adjacent to the King’s opposite side. The King has to be moved first, and Rook has to jump above it to get to the other side.
If the White player short castles, they put the e1-King to g1 and h1-Rook to f1 in the same move.
Example of Short Castling

If the White side long castles, they put the e1-King to c1 and the a1-Rook to d1. The same applies to the Black side (symmetrical). Certain rules should be met to be able to castle.
Example of Long Castling

Kingside vs Queenside Castling
Both put the King in the corner, but they are not the same move. Here is how they compare.
| Kingside (short castle) | Queenside (long castle) | |
|---|---|---|
| Notation | O-O | O-O-O |
| King moves to | g1 (White) / g8 (Black) | c1 (White) / c8 (Black) |
| Rook moves to | f1 (White) / f8 (Black) | d1 (White) / d8 (Black) |
| Squares to clear | Two (f and g files) | Three (b, c and d files) |
| Typical feel | Faster and safer, King is tucked in the corner | Slower to prepare, but the Rook lands on the central d-file |
Most games end with both players castling kingside because it is quicker and the pawn shield in front of the King stays solid. Queenside castling takes one extra move to clear the b-square, and the King ends up a little closer to the edge, but the Rook is instantly active in the center. Players often castle on opposite sides when they want a sharp, attacking game.
What are the Castling Rules?
There are several rules that can enable or disable the castling for the player:
1) To castle, both the King and the Rook (the Rook is located where the castling is desired) shouldn’t be moved before.

In the diagram above, we can see that the White King is already moved to e2-square. From this moment on, White can never castle during this game.

Different from the King, if one of the Rooks is moved, the King can still castle on the opposite side. In the diagram above, the h1-Rook has moved to g1-square. The King can no longer be safe in the Kingside. The best option is to castle in the Queenside.
2) There mustn’t stand any pieces between the King and the Rook.
f1-Bishop stays in between the King and the Rook.

In order to castle, the King and Rook have to be fully connected. There cannot be any piece standing in between them. The player needs to be able to shift the King two squares toward the Rook. Hence, developing pieces is one of the vital steps in the opening stage to protect the King.
3) The King shouldn’t be under check.
b4-Bishop checks the White King. White cannot castle under check.

As shown in the above diagram, the King cannot castle if it’s under a check. This doesn’t mean the King cannot castle anymore. Once the threat is gone, White can still castle. In the given position, White can play c2-pawn to c3 and block the check. Then, they can castle if they desire.
4) The squares on which the King will move forward to castle cannot be attacked by any enemy pieces.

In the diagram above, the c5-Bishop covers the g1-square. Both f1- and g1- should have been secured by White to castle. The only way to castle here is to block that threat on g1. The player can try c3-and d4-pawn pushes to close the diagonal. It is important to note that moving the f-pawn often creates scenes like this where the King cannot easily castle.
Note – If the Rook is under assault, this does not prevent the side from castling.
When Can You NOT Castle in Chess?
The four rules above are easier to remember as a short “no-castle” list. If any one of these is true, castling is not allowed:
| Situation | Can you castle? | Why |
|---|---|---|
| Your King has already moved | No, never again this game | The King loses its castling right permanently, even if it moves back. |
| That Rook has already moved | No on that side only | You can still castle on the side whose Rook has not moved. |
| A piece stands between the King and Rook | No, until it moves | The path must be empty before you can castle. |
| Your King is in check right now | No, until the check is gone | Block or escape the check first, then you may castle later. |
| The King would pass through an attacked square | No | The King may not travel across a square an enemy piece controls. |
| The King would land on an attacked square | No | You can never castle directly into check. |
| Only your Rook is under attack | Yes | An attacked Rook does not stop castling; only the King’s squares count. |
So the short version is this: a moved King kills castling for the whole game, a moved Rook kills it on that one side, and a check on the King’s path stops it for the moment. Everything else, including a Rook under fire, is fine.
Can You Castle Out of, Through, or Into Check?
This is where most beginners get confused, so here is each case on its own.
Castling out of check
No. If your King is in check, you cannot use castling to escape it. You first have to deal with the check by blocking it, capturing the checking piece, or moving the King. If you block the check without moving the King, you may still castle on a later turn.
Castling through check
No. The King is not allowed to pass over a square that an enemy piece attacks. For a kingside castle the King crosses f1 (or f8 for Black):
And for a queenside castle it crosses d1 (or d8):
If either of those squares is attacked, castling on that side is illegal for now.
Castling into check
No. The King can never finish its move on an attacked square, and castling is no exception. If g1 is covered for a short castle, or c1 for a long castle, you cannot castle there.
One safe exception worth remembering: only the King’s squares matter. The square the Rook crosses, and even the Rook itself, can be attacked while you castle. A common case is the queenside castle, where the b1-square (or b8 for Black) is allowed to be under attack.
Benefits of Castling
One of the main opening principles is castling early. This principle comes from the problems that can be caused to the King once it resides in its initial location. The King is the most essential piece, and it should be prioritized. Games often involve pawn pushes such as e4 and e5. This increases the probability of enemy pieces creating a threat to the King. The King is in the castled square, making it harder for the rival to launch a deadly attack without signs. The fortress of pawns in front of it protects it as if it’s at his own home. Once the King is castled, the Rook also gets into the game. It can be placed in a useful file, benefiting the player greatly. As we know, Rooks are the most valuable after the Queens. Bringing them to the game is also quite challenging because they are located at the corner squares. This one special move does it all
When Should You Castle in Chess?
At low levels, players should always castle immediately after the pieces nearby the King are developed. Castling move should not be delayed if the enemy prepares to attack the King and the e-file is open. Playing risky moves like f4 should be done after the player castles. Once the King is moved before castling, it is very rough to make it safe. Players must ensure they always have enough time to castle before it’s too late. Also, castling can be an aggressive tool. There are many games showing that by only castling, the player can contribute the Rook to the action. Even if the player has a fierce assault on the rival King, castling will make sense.
Common Castling Mistakes to Avoid
1. Castling with two hands
This mistake does not occur in online games. However, in an over-the-board tournament, the players need to castle with one hand. The King has to be moved first, and then Rook should be placed adjacent to the King. Castling with two hands is considered a rule violation.
2. Castling into checkmate
Although this is not a rule violation, players must be careful that the castled King is safe. The opponent can create an attack towards that square. The assault should be assessed, and King should be safe once it’s castled.
3. Castling the wrong side
There are specific positions where the enemy has too many pieces on that side. Castling the risky side could be a problem in maintaining the safety of the King.
Conclusion
Castling is a special chess move that allows the King to be safe behind the pawn fortress. There are several rules to know for conducting this special move. Players should castle on the safe side and maintain their King’s safety.
Frequently Asked Questions (FAQ)
What does castling mean in chess?
Castling is a special move to put the King in safety. It involves the King and Rook moving in the same turn. Players often castle to maintain the advantage of this special move. The castled side’s Rook also gets into the game and is activated after the player castles the King.
When was castling added to chess?
Although the specific date is unknown, it is thought that it was added to chess in the 1300s. In the 1600s, it was reformed to the form we use today.
Is castling allowed in chess?
Yes, castling is allowed in chess. However, there are specific rules that allow or disable players from castling. These rules can either irreversibly prohibit the castling in a game or forbid it momentarily.
Can you castle on both sides in chess?
No. You castle only once per game, and only on one side. Once your King has castled or even just moved, you can never castle again for the rest of that game.
Can you castle out of check?
No. If your King is in check you must answer the check first. You cannot use castling to step out of it, although you may castle later once the check is gone and the King itself has not moved.
When can you not castle?
You cannot castle if your King has moved, if the Rook on that side has moved, if a piece sits between them, if your King is in check, or if the King would pass through or land on a square the enemy attacks.
Is kingside or queenside castling better?
Neither is always better. Kingside (O-O) is quicker and keeps the King safely in the corner, so it is more common. Queenside (O-O-O) takes an extra move but activates the Rook on the central d-file, which suits attacking play.
What is the difference between O-O and O-O-O?
O-O means kingside (short) castling, where the King goes toward the h-file Rook. O-O-O means queenside (long) castling, where the King goes toward the a-file Rook. The extra “O” matches the extra square the King travels on the queenside.


