When a piece attacks the rival king, it is giving . A king in check must get out of check on the very next move, and there are three ways: move the king, block the check with another piece, or capture the piece giving it. Here the rook on e1 gives check to the black king on e8.