27

Why is castling disallowed when the king is in check or when the square the rook will be placed on is under attack?

What is the rationale behind this ruling?

5
  • 9
    When castling, the King is thought of as moving 2 squares, not teleporting 2 squares. Since the King may not move into check, castling through a square controlled by the opponent constitutes moving into check.
    – Tony Ennis
    Commented Jan 5, 2014 at 18:34
  • Can the king castle when it is in check?
    – user7092
    Commented Mar 25, 2015 at 8:43
  • 1
    @HarjinderSingh No, that is prohibited, as the question remarks.
    – Daniel
    Commented Mar 25, 2015 at 12:42
  • 1
    Not necessary every rule should have logical and rational reason behind... this is a rule of this game.
    – Jackal
    Commented Mar 16, 2019 at 14:58
  • 1
    @Jackal Sure, but usually they have logical, or at least historical (based on logic) reasons.
    – Déjà vu
    Commented Dec 2, 2021 at 7:00

4 Answers 4

24

One rationale that I can think of for not allowing the king to move through check parallels that behind the possibility of capturing en passant after a pawn makes a two-square advance.

  • The typical pawn move is just a single square forward, and the possibility of advancing two squares on a pawn's first move was a relatively late addition to the game in historical terms. Since the "nature" of a pawn had long been to make a single square advance, when that new sort of pawn move came into being, the en passant capture was a natural counterpart: the pawn doesn't "jump" two squares ahead, but rather "marches" through the intermediate square, and an opposing pawn is thus allowed to capture en passant on the following move if it is in position to have captured the advancing pawn at the intermediate square.

  • With that explanation in mind, let's consider your rule. Like pawns, a king's typical, natural movement is only a single square in distance. And like the pawn's two-square advance, castling is a relatively new addition to the rules of chess that is intended to speed the game up. So just as the en passant capture reinforces the pawn's nature as a one-square mover, the rule prohibiting a king to castle through a checked square reinforces the king's nature as a one-square mover. He is thought of not as gliding over the checked square, but rather trudging through it. And just as an opponent's pawn has a chance to capture en passant, an opponent's piece guarding the intermediate castling square would be given the right to capture the king. Since that's not a legal part of chess, castling through check in the first place isn't either.

As for why castling is disallowed just because of the king being in check, I'm not so sure, but I'll speculate. If, in the analogy between chess and war, we think of a check to the king as a wounding attack, less severe than the lethal checkmate but damaging nonetheless, then it's reasonable to insist that the hobbled king can't make a swift, immediate escape via castling. But maybe that's just how I think of it.

9
  • 1
    The pawn's two square advance/king's two square leap makes sense, but what about the placement of the rook? Is the rook assumed to be able to jump over or teleport next to the king?
    – Alexandros
    Commented Jan 5, 2014 at 18:46
  • 4
    Good answer. To elaborate on the castling rule evolution, when castling first was introduced, it happened over two moves. The first move was moving the king, and then the second move was moving the rook to the other side of the king. I think this is part of the reason that castling still follows so many of the rules regarding check and legality.
    – Andrew
    Commented Jan 6, 2014 at 17:41
  • 1
    @Alexandros same idea as ETD suggested, jumping two or three squares is part of the rook's natural moves, hence it makes sense that the rook being or passing under attack doesn't interfere with castling. Say white wants to castle Queen-side, if d1 is under attack, the king cannot reach to c1 via d1, but if b1 is under attack, the rook can still easily reach d1 with one move, which means it doesn't gain additional capabilities of jumping over attacked squares the same way as the king would.
    – downhand
    Commented Mar 25, 2015 at 12:26
  • 3
    i always assumed that castling out of check is prohibited as to not overpower the castling move. it already is a big advantage over just moving the king one square, it should at least not be able to bring the king from an ongoing attack to complete safety.
    – peter
    Commented Jan 14, 2016 at 12:12
  • 3
    AFAIK, castling was invented to provide protection to the king against the new queen, which was too powerful. At first castling took two moves, first by the rook and then the king would 'jump' through the rook to its castle. It was not so strange because other pieces like the old 'alferza' could do a 'salto de la alegría' jumping some squares under some conditions (the 'alferza' just after being promoted from a pawn)
    – sharcashmo
    Commented Oct 13, 2016 at 12:21
17

The way I always understood castling is that it allows the player to move his king to safety. But this privilege does not come for free - it comes at the cost of a tempo. If a player was allowed to castle out of check, or over a checked square, then it allows him to postpone this powerful move until the very latest, effectively removing the penalty from the privilege.

For me, this rule has nothing to do with how the king (or any other pieces) move. It has to do with achieving a balance between attacking play and defensive play. Just like how a goal keeper in football can handle the ball in his penalty area (but not if it was back-passed to him by one of his own players), so the rule of castling is there to ensure that you get a defensive edge, but not for free. You have to work it into your strategy.

1
  • 1
    +1. I agree, there's a certain sense of ant/grasshopper justice to not allowing a king to wait until checked to castle.
    – ETD
    Commented Jan 6, 2014 at 23:20
10

I just posted an answer to this question How did castling originate? and I think it offers a missing part of the answer to this questions as well: What the rationale is, behind not being able to castle out of check.

Historically castling was probably two moves (the rook move and the king's leap), that were merged into a double move, because they basically always followed directly one after the other. Just like the double move of the pawns.

And just like you cannot escape capture from an enemy pawn, by just moving past it, you cannot escape check by just castling: In both cases the "double move" is dissected into the two original moves - the pawn can be taken en passant and the king could still be taken after the rook move, making castling illegal.

In both cases the rationale is speeding up the game, without changing what was possible before.

2
  • interesting. so historically the rook move had to come first, then the king jumped over it.
    – peter
    Commented Jan 14, 2016 at 12:25
  • This is indeed interesting. But when they changed the rule into a single move, they could also have taken out the check restriction (and a 2-spaces forward moving pawn can block a king check, if that is relevant to the argument in the answer).
    – Déjà vu
    Commented Dec 2, 2021 at 6:38
5

Because that would be cheating. Well, to be fair, the reason is to make it reasonable that when all of the squares surrounding a king and the square it stands on are attacked by the opponent, the defender cannot simply warp away and out of trouble, while simultaneously delivering a new defender in the fray. The move would simply be too powerful.

However, you are allowed to do this:

[FEN "1r6/p2nkp1p/2B1pb1B/2p5/6r1/2P5/PP3P1P/R3K2R w KQ - 0 21"]
[Event "Todd Southam Memorial"]
[Site "Toronto"]
[Date "2004.06.13"]
[White "Krupnov, Maxim E"]
[Black "Smith, Hazel"]
[Result "1-0"]
[WhiteElo "2361"]
[BlackElo "2051"]
[SetUp "1"]
[EventType "schev (rapid)"]

1. Be3 Rxb2 2. Bxd7 Kxd7 3. O-O-O+ Kc6 4. Kxb2 {and White won in 42 moves} 1-0
1
  • Don't understand why this was downvoted. The point is valid. If the king is in check along with all its surrounding squares, that would be checkmate (unless there's a blocking move). You should not be able to warp out of checkmate.
    – DrZ214
    Commented May 25, 2017 at 13:33

Not the answer you're looking for? Browse other questions tagged or ask your own question.