A pin in chess is a tactic in which a bishop, rook, or queen attacks an enemy piece that cannot move—or would be unwise to move—because something more valuable is behind it. The piece in the middle is said to be pinned.
Absolute and relative pins
An absolute pin happens when the piece behind the pinned piece is the king. Moving the pinned piece would expose the king to check, so the move is illegal.
A relative pin happens when a more valuable piece, such as a queen, is behind the pinned piece. The pinned piece is legally allowed to move, but doing so may lose the valuable piece.
How to recognize a pin
Look for a bishop, rook, or queen attacking along a rank, file, or diagonal. If an opposing piece lies between the attacker and the king or another valuable piece, it may be pinned. For example, a bishop attacking a knight with the enemy king directly behind it has pinned the knight absolutely.
A pin can restrict an opponent’s choices and create opportunities to win material, but a pinned piece is not always completely helpless. In a relative pin, it can still move if the player decides the trade-off is worthwhile.