The Pin in Chess: Freeze an Enemy Piece
Last updated:
What is a pin?
A pin needs three pieces on one line — a row, a column or a diagonal: your pinning piece at one end, the enemy's pinned piece in the middle, and a more valuable enemy piece behind it. The piece in the middle is stuck, as if pinned to the board.

In the diagram the white bishop on b5 aims through the black knight on c6 at the black king on e8. If the knight moved, the bishop would be giving check — and you're never allowed to leave your own king in check — so the knight can't move at all.
Only bishops, rooks and queens can pin, because they attack along long lines. A knight jumps, and pawns and kings move one square at a time, so there's no line for them to pin along.
What's the difference between absolute and relative pins?
Absolute pin: the piece behind is the king. The rules forbid the pinned piece to leave the line. It may still move along the line, though: a queen pinned by a rook on a column can slide up and down that column, or even take the rook (puzzle 4 is like that).
Relative pin: the piece behind is a queen, a rook or another valuable piece. The front piece is allowed to move, but then the bigger piece behind it is lost, so it usually shouldn't.

In the diagram the white bishop on g5 aims through the knight on f6 at the black queen on d8. The knight may move, but if it does, the bishop takes the queen. With Black to move, the queen can simply step off the line, and the pin is gone.
So a relative pin needs a little counting: if the front piece can give check or win something bigger when it moves, losing the piece behind may be worth it. An absolute pin needs no counting — the rules hold the piece for you.
How do you use a pin?
Attack it again. A pinned piece can't run away, so hit it with another piece — ideally a cheap one, like a pawn.

In the diagram the bishop on b5 pins the knight on c6, and the pawn steps from d4 to d5 to attack it as well. The knight can't move and will be taken by the pawn; Black's b7 pawn can at most take that pawn back. White trades a pawn for a knight.
A pinned piece can't defend. In an absolute pin, the pinned piece may not leave its line, so the squares it seems to guard aren't really guarded. Puzzle 5 is built on this: the black bishop looks as if it can take your rook back, but it's pinned to its king.
And a pinned piece can't dodge. If it's unguarded, or worth more than the piece attacking it, just take it. Puzzles 1–3 all pin first and capture on the next move.
How do you get out of a pin?
There are four ways out: move the piece behind (the queen or rook in a relative pin, the king in an absolute one); put another piece in between to block the line; chase the pinning piece away, for example by attacking the bishop with a pawn; or simply capture the pinning piece.

Here is a line of the Ruy Lopez (Spanish Opening): 1.e4 e5 2.Nf3 Nc6 3.Bb5 d6 4.d4. The black knight on c6 is pinned to the king by the bishop on b5, and White's d4 pawn hits e5. Black can play 4…Bd7, putting the bishop between the knight and the king, and the knight is free again. This is the main line of the Steinitz Defence (3…d6) — an old opening that strong players rarely choose today, but a perfect example of breaking a pin.
Best of all, see it coming: don't line up your king or queen with another piece on a line that an enemy bishop, rook or queen can reach.
How do you spot a pin?
Before each move, look at the enemy king and queen. Are they on the same row, column or diagonal as another enemy piece, with just that one piece in between? Can your bishop, rook or queen reach the other end of that line? Three yeses, and there may be a pin.
Then ask the same questions about your own king and queen, so your opponent doesn't pin you first.
Five pin puzzles
These come from real games in the lichess puzzle database, and White moves first in all of them. In the first four you win material; in the last you mate in two. Tap a piece, then its square; if you're right, the computer answers for Black and you go on.
1. Rook pins knight · White to move and win material

White to move. Tap a piece, then tap where it should go.
Hint / Answer
Hint: Put your rook on the row where the black knight and king stand.
Answer: 1. Rg5 Kc6 2. Rxe5
2. Bishop pins knight · White to move and win material

White to move. Tap a piece, then tap where it should go.
Hint / Answer
Hint: Find a diagonal that runs through both the knight on c6 and the king on f3.
Answer: 1. Bb7 Kg3 2. Bxc6
3. Bishop pins rook · White to move and win material

White to move. Tap a piece, then tap where it should go.
Hint / Answer
Hint: The rook on c4 and the king on b5 share a diagonal; put your bishop on the other end of it.
Answer: 1. Bd3 Ka4 2. Bxc4
4. Rook pins queen · White to move and win material

White to move. Tap a piece, then tap where it should go.
Hint / Answer
Hint: The queen and king are both on the e-file. Put your rook on that file, on a square a pawn protects.
Answer: 1. Re3 Qxe3 2. fxe3
5. The pinned bishop can't take back · White to move and mate in two

White to move. Tap a piece, then tap where it should go.
Hint / Answer
Hint: The bishop on g7 is pinned to the king on h8 by your queen on d4. Check on the back row with the rook — after Black blocks, who can take your rook?
Answer: 1. Rc8+ Qf8 2. Rxf8#
Quick answers
What does it mean when a piece is pinned?
It's stuck in front of a more valuable piece on the same line. With the king behind, moving off the line is against the rules; with anything else behind, moving loses that piece.
Can a pinned piece move?
If the king is behind it (an absolute pin), it may not leave the line, though it may move along it or capture the pinning piece. If a queen or rook is behind it (a relative pin), it may move — but the piece behind will be taken.
Which pieces can pin?
Only bishops, rooks and queens, because they attack along long lines. Knights, pawns and kings can't pin.
What's the difference between an absolute and a relative pin?
It depends on the piece behind. With the king behind, it's absolute and the rules keep the front piece on its line; with anything else behind, it's relative — the front piece may move, but the piece behind it is lost.
How do you break a pin?
Move the piece behind out of the line, block the line with another piece, chase the pinning piece away with a pawn, or capture it.
Can a pinned piece still defend?
Not in an absolute pin: it may not leave its line, so the squares it seems to guard aren't really guarded (puzzle 5). In a relative pin it can take back, but the piece behind it is then lost.
What next
Turn a pin around and you get a skewer; move the front piece out of the way on purpose and it's a discovered attack. Pins often team up with the fork, too. All seven common tactics are on chess tactics for beginners.
Want to see a master use pins? Replay the Opera Game, where Morphy pins and sacrifices his way to mate in 17 moves. Not sure yet how the long-range pieces move? Go back to the bishop lesson or see the bishop in the rules. Then play the computer or try the daily puzzle.