8
7
6
5
4
3
2
a1
b
c
d
e
f
g
h
Step 1 / 2
Your knight on g5 guards h7. The black king on g8 has its own rook on f8 and pawn on f7 taking away those squares. A queen to h7 is protected, gives check, and leaves the king no move — the classic end of a kingside attack.