---
title: "Castling in chess: rules, conditions and when to castle"
description: "Castling in chess: how it works, kingside and queenside castling, the five conditions that allow it, and the most common mistakes. Play chess free."
url: https://games.klyo.pl/rules/chess/castling/
canonical: https://games.klyo.pl/rules/chess/castling/
type: zasady
language: en
author: klyo
organization: Klyo Illia Krasnopolskyi (NIP 7822656871), Łódź, Poland
contact: kontakt@klyo.pl
updated: 2026-10-18
llms: https://games.klyo.pl/llms.txt
---

# Castling in chess

Castling is the move in which the king moves two squares towards a rook and the rook jumps over it to stand right next to it. It is the only move in chess in which you move two pieces at once, and the quickest way to tuck the king away and bring a rook into play.

[Play chess](https://games.klyo.pl/chess/)

[All game rules](https://games.klyo.pl/rules/)

- [![Szachy: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-szachy-800.041d5151.webp) 10–30 min **Chess** 2 player 10–30 min Online, vs computer, 2 player and puzzles.](https://games.klyo.pl/chess/)

## In short

1. The king moves two squares towards the rook.
2. The rook jumps over the king and stands next to it.
3. Neither the king nor that rook may have moved before.
4. The squares between them must be empty.
5. You cannot castle out of check or through an attacked square.

## Kingside and queenside castling

Kingside castling goes towards the rook nearer the king: the white king moves from e1 to g1 and the rook from h1 to f1. Queenside castling goes towards the farther rook: the king from e1 to c1 and the rook from a1 to d1. Black castles the same way on the eighth rank. In chess notation kingside castling is written O-O and queenside castling O-O-O.

*White castles kingside: before it the king stands on e1 and the rook on h1. After castling the king is on g1 and the rook on f1.*

## When are you allowed to castle? Five conditions

- The king has not moved yet in this game.
- The rook you castle with has not moved yet either.
- All squares between the king and that rook are empty.
- The king is not in check at the moment of castling.
- The king does not pass through or land on a square attacked by the opponent. The rook may pass through an attacked square.

## When to castle and which side to choose?

Usually in the opening, after developing the knight and bishop on one side. Kingside castling needs only two pieces out of the way and usually leaves the king safer. Queenside castling brings the rook to the centre faster, but the king stands closer to the middle and needs cover. If your opponent is attacking one side, castle to the other.

## The most common castling mistakes

- Moving the king and then trying to castle: after the first king move, castling is gone for the whole game.
- Castling while in check: first you have to get out of check.
- Castling too late: a king left in the centre becomes a target before you can tuck it away.

## Play Chess for free

You know the rules, now play. Chess runs free in your browser, on a phone and a computer, with nothing to install and no account.

[Play chess](https://games.klyo.pl/chess/)

[![Szachy: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-szachy-800.041d5151.webp)](https://games.klyo.pl/chess/)

## Read next

- **[Chess rules](https://games.klyo.pl/rules/chess/)**: Chess is a game for two players on an 8 by 8 board.
- **[En passant](https://games.klyo.pl/rules/chess/en-passant/)**: En passant is a special pawn capture.
- **[Stalemate in chess](https://games.klyo.pl/rules/chess/stalemate/)**: Stalemate is when the player to move is not in check but has no legal move.
- **[Chess openings for beginners](https://games.klyo.pl/rules/chess/openings/)**: The opening is the first phase of a game.

## Similar free games

- [![Nardy: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-nardy-800.54bfde89.webp) new **Backgammon** 2 player Online vs computer or 2 player.](https://games.klyo.pl/backgammon/)
- [![Statki: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-statki-800.861079ed.webp) 5–10 min **Sea Battle** Board 5–10 min Battleship game online for free: play the computer, a friend or by link.](https://games.klyo.pl/statki/)
- [![Kółko i krzyżyk: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-kolko-i-krzyzyk-800.d594bf13.webp) new 30 s–1 min **Tic Tac Toe** Puzzle 30 s–1 min Vs computer, with a friend or online.](https://games.klyo.pl/tic-tac-toe/)
- [![Mahjong Sanctuary: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-mahjong-sanctuary-800.e8ff51f5.webp) 5–15 min **Mahjong Sanctuary** Puzzle 5–15 min Mahjong Solitaire, daily board.](https://games.klyo.pl/mahjong/)

## Rules of other games

- ![Sudoku: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-sudoku-2-480.e9b513a7.webp) **[Sudoku rules](https://games.klyo.pl/rules/sudoku/)**
- ![Pasjans Klondike: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-pasjans-klondike-480.04d31a38.webp) **[How to play solitaire](https://games.klyo.pl/rules/solitaire/)**
- ![Saper: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-saper-480.2f9ac47d.webp) **[How to play Minesweeper](https://games.klyo.pl/rules/minesweeper/)**
- ![Warcaby: gra w przeglądarce od twórcy Rasalhague](https://games.klyo.pl/foto/zrzut-gra-warcaby-480.26d6a73f.webp) **[Checkers rules](https://games.klyo.pl/rules/checkers/)**
- ![Kółko i krzyżyk: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-kolko-i-krzyzyk-480.50e8a2d8.webp) **[How to win at Tic Tac Toe](https://games.klyo.pl/rules/tic-tac-toe/)**
- ![Mahjong Sanctuary: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-mahjong-sanctuary-480.8437fb0c.webp) **[Mahjong rules](https://games.klyo.pl/rules/mahjong/)**
- ![Pasjans Pająk: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-pasjans-pajak-480.a79add80.webp) **[Spider Solitaire rules](https://games.klyo.pl/rules/spider-solitaire/)**
- ![Pasjans FreeCell: gra w przeglądarce od twórcy Klyo](https://games.klyo.pl/foto/zrzut-gra-pasjans-freecell-480.681af1e1.webp) **[FreeCell rules](https://games.klyo.pl/rules/freecell/)**

---

Source: https://games.klyo.pl/rules/chess/castling/ · Built and run by klyo, a Polish technology company (Łódź) · Contact: kontakt@klyo.pl · Index for language models: https://games.klyo.pl/llms.txt
