Learn › Lessons › Learn to Play

Castling

Learn how to castle in chess, why it keeps your king safe, and every rule for when you can't. Watch it happen, then castle yourself, free.

Here's the only move where two of your pieces move at once: castling! First, let me show you why it matters.

  1. Watch

    Chessboard. White: king e1, rook a1, rook h1, pawn a2, pawn b2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8, queen d8.
    1. Your king is still in the middle, and the pawns in front of him have gone. Say you leave him there and move a pawn.
    2. Black's queen comes straight down the open file: check! A king in the middle is easy to attack.
    3. So castle instead. In one move, your king hides behind his pawns, and a rook comes towards the middle.
    4. Now the queen finds nothing on the open file. Your king is safe in the corner.
  2. Watch

    Chessboard. White: king e1, rook a1, rook h1, pawn a2, pawn b2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8.
    1. To castle, the king steps two squares towards a rook, and the rook jumps over to stand beside him.
    2. That's castling on the king's side: king on g1, rook on f1. Two pieces, one move!
    3. On the queen's side, the rook has further to go, but the king still moves just two squares.
    4. King on c1, rook on d1. You may castle once a game, on either side, if you want to.
  3. Your turn

    Chessboard. White: knight b1, king e1, queen d1, rook a1, rook h1, bishop c1, pawn a2, pawn b2, pawn c2, pawn d2, pawn e4, pawn f2, pawn g2, pawn h2. Black: king e8.

    Your turn! Castle on the king's side: move your king two squares, and the rook comes by itself.

  4. Your turn

    Chessboard. White: king e1, knight g1, rook a1, rook h1, bishop f1, pawn a2, pawn b2, pawn c2, pawn d4, pawn e2, pawn f2, pawn g2, pawn h2. Black: king e8.

    Now castle on the queen's side, towards the rook on a1. The king still moves two squares.

  5. Watch

    Chessboard. White: king e1, rook a1, rook h1, pawn a2, pawn b2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8, bishop f8.
    1. Here's the first rule of castling. Say Black's bishop gives your king check.
    2. Your king steps aside to f1, out of check.
    3. Then the bishop goes back to where it came from.
    4. And your king walks back home to e1.
    5. He's home, but he has moved. So he can never castle again, for the rest of the game.
    6. The rooks count too. If a rook has moved, even once, you can't castle with that rook.
  6. Question

    Chessboard. White: king e1, knight f3, rook a1, rook h1, pawn a2, pawn b2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8, pawn a7, pawn b7, pawn c7, pawn f7, pawn g7, pawn h7.

    Your king stepped up to e2, then went back home. Can you castle now?

    • Yes, he's back home
    • No, the king has moved

    Answer: No, the king has moved. Right! Once the king has moved, castling is gone for the whole game.

  7. Question

    Chessboard. White: knight c3, king e1, rook a1, rook h1, pawn a2, pawn b2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8, pawn a7, pawn b7, pawn f7, pawn g7, pawn h7.

    Your rook stepped to g1, then went back to h1. Which way can you castle now?

    • King's side
    • Queen's side
    • Both sides
    • Neither

    Answer: Queen's side. Right! The rook on a1 never moved, so the queen's side still works.

  8. Chessboard. White: knight b1, king e1, rook a1, rook h1, bishop f1, pawn a2, pawn b2, pawn c2, pawn d4, pawn e2, pawn f2, pawn g2, pawn h2. Black: king e8.

    Next rule: every square between the king and the rook must be empty. Here, the knight and the bishop are in the way.

  9. Question

    Chessboard. White: knight b1, king e1, knight f3, queen d2, rook a1, rook h1, bishop d3, pawn a2, pawn b2, pawn c2, pawn e3, pawn f2, pawn g2, pawn h2. Black: king e8, pawn a7, pawn b7, pawn c7, pawn f7, pawn g7, pawn h7.

    Your king and rooks have never moved. Which way can you castle?

    • King's side
    • Queen's side
    • Both sides
    • Neither

    Answer: King's side. Right! The knight on b1 still blocks the queen's side: even that square must be empty.

  10. Watch

    Chessboard. White: king e1, rook a1, rook h1, pawn a2, pawn c2, pawn g2, pawn h2. Black: king e8, rook a8, bishop e6, bishop e7.
    1. Now three rules about check. Look at the king's three squares: where he starts, the one he crosses, and where he lands.
    2. If Black gives check, you can't castle out of it. Deal with the check first.
    3. If Black attacks the square the king crosses, you can't castle that way either.
    4. And the king can't land on an attacked square, because that's moving into check.
    5. But only the king's squares count. On the queen's side, the rook may cross b1 even when it's attacked.
  11. Your turn

    Chessboard. White: knight b1, king e1, rook a1, rook h1, pawn a2, pawn b2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8, bishop b4, pawn a7, pawn b7, pawn c7, pawn f7, pawn g7, pawn h7.

    Black's bishop gives check. Get out of check, and keep your chance to castle later.

  12. Your turn

    Chessboard. White: king e1, rook a1, rook h1, pawn a2, pawn b2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8, bishop c4.

    Castle, but look at Black's bishop first. Which way is allowed?

  13. Your turn

    Chessboard. White: king e1, rook a1, rook h1, pawn a2, pawn b2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8, bishop h6.

    Black's bishop moved to h6. Castle again: which way is allowed this time?

  14. Question

    Chessboard. White: king e1, rook a1, rook h1, pawn a2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8, rook b8.

    Black's rook now attacks b1. Can you castle on the queen's side?

    • Yes, the king's squares are safe
    • No, the rook would cross b1

    Answer: Yes, the king's squares are safe. Right! Only the king's squares matter: the rook may cross an attacked square, or even be attacked.

  15. Watch

    Chessboard. White: king e1, rook a1, rook h1, pawn a2, pawn b2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8, rook a8, rook h8, pawn a7, pawn b7, pawn c7, pawn f7, pawn g7, pawn h7.
    1. Black castles the same way, on its own back row: the king goes to g8, and the rook to f8.
    2. Or on the queen's side: the king goes to c8, and the rook jumps over to d8.
    3. Black's castling has the same rules. So if you attack the right square, Black can't castle that way!
  16. Question

    Chessboard. White: king e1, rook a1, rook h1, bishop g5, pawn a2, pawn b2, pawn c2, pawn f2, pawn g2, pawn h2. Black: king e8, rook a8, rook h8, pawn a7, pawn b7, pawn c7, pawn d6, pawn f7, pawn g7, pawn h7.

    Your bishop just moved to g5. It's Black's move: which way can Black castle?

    • King's side
    • Queen's side
    • Both sides
    • Neither

    Answer: King's side. Right! Your bishop attacks d8, the square Black's king would cross on the queen's side.

  17. Your turn

    Chessboard. White: king e1, rook a1, rook h1, pawn a2, pawn b3, pawn c2, pawn d2, pawn f2, pawn g2, pawn h2. Black: knight e3, king e8, rook a8, rook h8, pawn a7, pawn b7, pawn c7, pawn f7, pawn g7, pawn h7.

    Boss time! Black's knight jumped to e3, and now you can't castle either way: find the best move.

  18. Recap

    Castling

    • The king moves two squares towards a rook, and the rook jumps over.
    • The king and that rook must never have moved.
    • Every square between them must be empty.
    • The king can't start, cross or land on an attacked square.

You can castle, and you know when you can't. Next, the strangest pawn move of all.

Read more in the guide: Castling, En Passant and Promotion: Chess's Special Moves.