If the king is in check and the check cannot be ended in any way, it is checkmate. The game is decided at once.
The king’s own pieces can also take away his escape squares. If he is completely hemmed in by them and a knight checkmates him, this is called a smothered mate.