A chess game is said to end in stalemate when the player to move has no legal move and his king is not in check.
From FIDE Laws of Chess:
The game is drawn when the player to move has no legal move and his king is not in check. The game is said to end in stalemate. This immediately ends the game, provided that the move producing the stalemate position was legal.