The long walk pays off
A pawn that reaches the far end of the board — the eighth rank for White, the first for Black — cannot stay a pawn. In the same move it must be replaced by a queen, rook, bishop or knight of its own colour. It can never become a king, and it cannot refuse the upgrade.
Promotion is why a single passed pawn can decide a game. A player who is a whole rook down can still win by shepherding one pawn to the end, because the new queen is worth more than the piece they lost.
Why the queen, almost always
Queening is the default because the queen is the strongest piece, combining rook and bishop moves. Players occasionally choose a knight instead — underpromotion — when the knight's jump gives an immediate check the queen could not, or when queening would stalemate the opponent.
You may promote to a piece you still have on the board, so two queens at once is perfectly legal. In practice the spare queen is often shown with an upside-down rook.


