If an enemy piece is straight in front of a pawn, the pawn cannot capture that piece. Pawns have a special way to capture. A pawn can capture an enemy piece which is on the diagonal square to the left or right of the square in front of it. This is the only time a pawn can move to a square that is not straight in front of it.