---
title: "Can a Checkmating Move Still Be Illegal in Xiangqi? · Xiangqi Master"
description: "Yes. A move that leaves your own general in check is illegal no matter what it achieves elsewhere, including delivering checkmate to the opponent."
url: https://xiangqimaster.com/blog/can-a-checkmating-move-still-be-illegal
updated: 2026-09-23
source: Xiangqi Master (https://xiangqimaster.com)
license: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
---

# Can a move that delivers checkmate still be illegal if it exposes your own general?

These answers restate the rules implemented by our open-source engine, which follows the WXF laws and is regression-tested against the official 110-diagram repetition casebook. Where an answer refers to a specific position, that position lives on the linked reference page, where the build verifies it against the engine before publishing.

> Direct answer
>
> **Yes.** Legality is checked first, and it only asks one question: is your own general safe the instant the move is made. If the answer is no, the move is refused outright, even if the same move would have checkmated the opponent. What the move does to the other side is never considered when deciding whether you are allowed to play it.

## Why the order matters

A player can sometimes see a spectacular finish, a piece flying across the board to deliver mate, and miss that the same move walks their own general into an attack that was already there. The rules do not weigh one outcome against the other. Self-safety is checked before anything else, so the "checkmate" never gets played at all.

## A common way this happens

It usually comes from a piece that was quietly defending the general against a chariot or a cannon on another line. Moving it to deliver a flashy attack removes that defence, and the move is illegal for that reason alone, regardless of how good it looks on the attacking side of the board.

## Related questions

Does the engine just reject the move?

Yes. A move interface will not let you play it at all; it is not a legal option to select in the first place.

Is there any way to play it anyway and accept the risk?

No. Unlike a merely risky move, this one is not legal under any circumstances, so there is nothing to accept.

## Related xiangqi resources

Check and checkmate

Including why stalemate is a loss

The flying general

Generals may never face each other down an open file

Xiangqi rules

The complete reference, rule by rule

## Try it on a real board

Reading an answer is one thing; playing it is another. Free, instant, and nothing to install.
