Unpin to check mate?
The goal of chess to capture the opponent's king (which is shortened to just plain "checkmate").
Of course, unpinning in an attempt to checkmate the opponent's king results in your own king being captured first (since it's your opponent's turn to make a move).
This unpinning, therefore, counts as an illegal move in chess.