Attack and king safety
Sacrifice on g7 to remove shelter
Before offering a rook on g7, calculate what your remaining queen and minor piece can do if the king takes, and what changes if the defender refuses.
Worked example
Position in text
White to move. White: queen h5, bishop d3, rook g1, king h1. Black: rook f8, king h8, pawn f7, pawn g7, pawn h7.
FEN: 5r1k/5ppp/8/7Q/8/3B4/8/6RK w - - 0 1
1.Rxg7 is not check: the king is on h8 and the rook is on g7. After 1...Kxg7, 2.Qxh7+ is supported by the bishop on d3, but 2...Kf6 is legal. The rook you sacrificed no longer covers the seventh rank; White has a queen and bishop, not an immediate net. If Black instead plays 1...Rg8, 2.Rxh7# uses the rook that stayed alive, guarded by the queen and bishop.
A plausible mistake
Counting the rook among the pieces attacking after ...Kxg7 is an easy calculation error. Rebuild the board after each capture before judging how many escapes remain.
Try it yourself
Position in text
White to move. White: queen h5, bishop d3, rook g1, king h1. Black: rook f8, king h8, pawn f7, pawn g7, pawn h6.
FEN: 5r1k/5pp1/7p/7Q/8/3B4/8/6RK w - - 0 1
In the second position Black’s h-pawn is on h6. If White tries 1.Rxg7 Kxg7, is Qxh6+ now supported like Qxh7+ was?
Check your answer
No. The d3-bishop guards h7, not h6. After 2.Qxh6+ Kxh6 the queen falls. The pawn moved only one square, but the queen’s destination lost its guard. Keep the rook unless a different forcing line works.