Sometimes you will find yourself in a bad situation but your king has no moves. In this type of position your best idea would probably be to siucide your remaining pieces. You would be in stalemate and salvage a draw. This type of sacrifice is called a suicide sacrifice. Here is a common example:
That is why you shouldn't promote tons of queens and kill all your opponents pawns. You should always be wary of this and look out for it. It is dangerous too put the enemy king where you can possibly stalemate him. Hope you learned something and please comment.