When your king is in check and any other move would result in the king still being in check, that is a checkmate.
that's right