Every pawn has
key squares
. If your king reaches one, the pawn will promote, whoever is to move. For a pawn on d4, they are
c6, d6 and e6
.
8
7
6
5
4
3
2
1
a
b
c
d
e
f
g
h