Look at this before you read anything else. White plays 1.Re8 and the game is finished.
7
2
e
g Black has three healthy pawns in front of the king and they are exactly the problem. The king on g8 cannot go to f8 or h8 because the rook on e8 sweeps the whole eighth rank. It cannot go to f7, g7 or h7 because its own pawns are standing there. Nothing captures the rook and nothing blocks. That is the back-rank mate, and if you play a hundred games at club level you will see it decide five or six of them.
Your own pawns do the trapping
Here is how it happens. You castle short around move six. Then you spend the middlegame doing sensible things in the centre, and you never touch f2, g2 or h2 because moving a pawn in front of your king feels reckless. Forty moves later the queens come off, a file opens, and those three loyal pawns are the wall your king dies behind.
The first thing I check when a student shows me a lost game is the back rank. About a third of the time the losing move was played twenty moves earlier, and it was not a move at all: it was the pawn push they never made.
Luft, the one move that prevents it
Luft is German for air, and in chess it means the escape square you give your king. One pawn move buys it. As White, h3 or g3; as Black, h6 or g6. There is a full page on what luft means, but the practical version fits in a line: play it when you are not busy, not when the rook is already on the seventh.
6
2
e
g Which pawn? h3 is the usual choice because g3 leaves a hole on f3 and h3 for an enemy queen and bishop to poke at. But g3 is better when you want to answer a check on the h-file. Pick one, play it early, and stop thinking about it.
How to hunt for it in your own games
Three questions, in this order. Is the enemy king on its starting rank with unmoved pawns in front of it? Is there a file that is open, or one move away from open? And who defends that back rank, because there is almost always one defender, and the whole tactic is usually about removing it. A queen or rook that is guarding e8 can be captured, deflected by a check somewhere else, or overloaded with a second job.
That third question is where the points are. Try a session of back-rank puzzles and you will notice how many of them start with a piece sacrifice that has nothing to do with the eighth rank, and everything to do with the piece guarding it. When you can see what checkmate actually requires, the sacrifices stop looking like magic.