♟ Chess Puzzle Trainer

What Is an X-Ray Attack in Chess?

September 5, 2026

Most attacks stop at the first piece in the way. An x-ray attack doesn't. The piece in between isn't blocking anything — it's just standing on a line that's still doing work on both sides of it, and the moment it moves, that becomes very obvious.

What an x-ray attack actually is

An x-ray attack is when a piece exerts influence through another piece on the same rank, file, or diagonal — usually an enemy piece — so that the line behind it matters just as much as the square in front of it. The blocking piece isn't necessarily attacked or pinned. It just happens to be sitting between your piece and something valuable, and your piece is "seeing through" it in a way that shapes the position even before anything gets captured.

The clearest version: two rooks facing each other on an open file with a piece sandwiched between them. Both rooks are attacking that piece. But each rook is also, in a sense, defending the square behind the other rook through the blocker — if the front rook gets captured, the x-ray attacker recaptures instantly, because the line was never really broken.

The classic example

Picture your rook and your opponent's queen on the same file, with one of your opponent's pawns sitting in between. Nothing looks urgent — the pawn blocks the file, the queen looks safe. But if anything forces that pawn to move or disappear, your rook is suddenly staring straight at the queen with no warning shot in between. The rook was "attacking" the queen the entire time; the pawn just hadn't gotten out of the way yet.

The same pattern shows up in endgames constantly: a rook behind a passed pawn, x-raying the promotion square through its own pawn. The pawn queens, and the rook's support was there on move one, not just the move the pawn crosses the line.

X-ray attack vs. pin and skewer: a quick way to tell them apart

All three involve two pieces lined up with one in front of the other, which is why they get lumped together. The difference is what the front piece is doing. In a pin, the front piece can't safely move because something worse sits behind it. In a skewer, the front piece is the more valuable one and has to move, exposing the piece behind it. In an x-ray attack, the front piece isn't necessarily under any obligation at all — it might move freely, get traded off, or just get out of the way naturally as the game continues, and the attack behind it was real the whole time regardless. Ask yourself: is the front piece trapped by the threat, or is the threat simply passing through it? That tells you which one you're looking at.

Why it's easy to miss

X-ray attacks get overlooked because the blocking piece looks like it settles the matter. If a pawn or a minor piece stands between your rook and the enemy queen, the instinct is to file that file away as "covered" and move on. But a line isn't neutralized just because something's sitting on it — it's neutralized only if nothing can ever clear that square. Players scan for direct threats and stop looking once they see a blocker, missing that the blocker is temporary and the pressure behind it isn't.

How to train for it

When you see a piece of yours lined up with a valuable enemy piece on a rank, file, or diagonal — even with something sitting between them — don't dismiss the line just because it's currently blocked. Ask what happens to that blocker over the next few moves: can it be captured, does it have to move, is it a pawn that's likely to advance or get traded? If the answer is yes, you already have a threat building, and you may not need to do anything to the blocker yourself — a check or a capture elsewhere that clears the square might be all it takes.

The same awareness pays off on defense. Before you trade off a piece that's sitting on a line between your king or queen and an enemy rook or bishop, check what that piece was actually screening. A trade that looks equal on the surface can open a line that was never truly closed.

Ready to put this into practice?