Answers.Body: <p>Castling is only prevented when the king ends, goes through, or is currently in check or when the king or castle has already moved. Since the king doesn't go through b1 castling is allowed.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-01T14:49:28.803Z
Answers.LastActivityDate: 2023-05-01T14:49:28.803Z
Answers.UserDisplayName: Dedbot
Answers.Body: <p>Basically, if there is none of the opponent active pieces threatening c1, d1, or e1 (the king can't be in check), then the king can castle long, as long as the king hasn't moved yet. Well, the rook has to have stayed in its original position as well. The same can be said for e1, f1, g1 when it comes to castling the other way.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-30T01:20:38.937Z
Answers.LastActivityDate: 2023-04-30T01:20:38.937Z
Answers.UserDisplayName: FluffyFlareon
Answers.Body: <p>You can not castle if your king would start, move through or end in check. For short castling that amounts to the same, since the corresponding squares e1, f1 and g1 include all the squares between king and rook. (Note that you can short castle even if your rook is attacked.)</p>
  <p>For long castling that makes a difference since b1 as in this example may be attacked but the White king never crosses that square.</p>
  <p>For reference: <a href="https://www.fide.com/FIDE/handbook/LawsOfChess.pdf" rel="noreferrer">https://www.fide.com/FIDE/handbook/LawsOfChess.pdf</a> Article 3.8 b.2.a:</p>
  <blockquote>
  <p>Castling is prevented temporarily:</p>
  <p>[a] if the square on which the king stands, or the square which it must
  cross, or the square which it is to occupy, is attacked by one or more of
  the opponent's pieces</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-04-29T09:29:36.380Z
Answers.LastActivityDate: 2023-05-01T23:09:37.017Z
Answers.LastEditDate: 2023-05-01T23:09:37.017Z
Answers.UserDisplayName: koedem
Body: <p>I always thought the rules are you can’t castle if an enemy piece is watching the space between your king and the rook you want to castle with. But according to chess.com castling long is allowed in the following position</p>
  <p><a href="https://i.sstatic.net/Imn2a.jpg" rel="noreferrer"><img src="https://i.sstatic.net/Imn2a.jpg" alt="enter image description here" /></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-04-30T05:01:17.820Z
Comments.Text: Aside: Former obscure castling with a [rook that never moved](https://chess.stackexchange.com/a/18100/14114).
Comments.UserDisplayName: chux
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-01T09:49:20.353Z
Comments.Text: @chux-ReinstateMonica Ahaha interesting, thanks for sharing :D
Comments.UserDisplayName: josias
Tags: <rules><castling>
Title: How is white allowed to castle 0-0-0 in this position?
ThreadText: # How is white allowed to castle 0-0-0 in this position?
  
  (Asked by: username_0 on 2023-04-29)
  
  I always thought the rules are you can’t castle if an enemy piece is watching the space between your king and the rook you want to castle with. But according to chess.com castling long is allowed in the following position
  
  [![enter image description here](https://i.sstatic.net/Imn2a.jpg)](https://i.sstatic.net/Imn2a.jpg)
  
  **Tags:** rules, castling
  
  > **Comments:**
  > **username_1**: Aside: Former obscure castling with a [rook that never moved](https://chess.stackexchange.com/a/18100/14114).  
  > **username_0**: @username_1-ReinstateMonica Ahaha interesting, thanks for sharing :D  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_4 on 2023-04-29. Score: 21 | Accepted answer
  
  You can not castle if your king would start, move through or end in check. For short castling that amounts to the same, since the corresponding squares e1, f1 and g1 include all the squares between king and rook. (Note that you can short castle even if your rook is attacked.)
  
  For long castling that makes a difference since b1 as in this example may be attacked but the White king never crosses that square.
  
  For reference: <https://www.fide.com/FIDE/handbook/LawsOfChess.pdf> Article 3.8 b.2.a:
  
  > Castling is prevented temporarily:
  >
  > [a] if the square on which the king stands, or the square which it must
  > cross, or the square which it is to occupy, is attacked by one or more of
  > the opponent's pieces
  
  
  ---
  
  ### Answer by username_2 on 2023-05-01. Score: 2
  
  Castling is only prevented when the king ends, goes through, or is currently in check or when the king or castle has already moved. Since the king doesn't go through b1 castling is allowed.
  
  
  ---
  
  ### Answer by username_3 on 2023-04-30. Score: 2
  
  Basically, if there is none of the opponent active pieces threatening c1, d1, or e1 (the king can't be in check), then the king can castle long, as long as the king hasn't moved yet. Well, the rook has to have stayed in its original position as well. The same can be said for e1, f1, g1 when it comes to castling the other way.
  
  
  ---
  
  