Castling is lesson 1 of 3 in Castling, promotion and en passant, a basics course suited to players rated around 350 (complete beginners). Castling is the only move where two pieces move at once: the king and a rook. It has 3 interactive exercises: 3 find-the-move puzzles. You play every move on a board and get feedback straight away. The lesson is free.
What this lesson explains
To castle, the king moves two squares towards a rook, and that rook jumps to the square on the king's other side. Short castling, on the king's side, puts the king on g1. Long castling, on the queen's side, puts it on c1.
Sometimes castling is not allowed. You may not castle if the king or that rook has already moved. Nor if a piece stands in between, or if your king is in check. And the king may not pass over or land on an attacked square. Here the bishop attacks f1, so White cannot castle short.
What you practise
Castle short, on the king's side: move your king two squares to the right.
Now castle long, on the queen's side: the king goes two squares to the left.
Only one way of castling is allowed here. Castle!
Worked examples
Castle short, on the king's side: move your king two squares to the right. Castled! The king is tucked away and the rook is ready to play.
Now castle long, on the queen's side: the king goes two squares to the left. Castled long. The king is on c1, and the rook from a1 jumped to d1.