Horse-and-Cannon Mate (马后炮)

Horse-and-cannon is one of the most common checkmating patterns in Xiangqi — the single most useful one to learn first.

The idea in one sentence

A real 21-move example from a 550-year-old classic is further down this page — this simplified position is just the fastest way to see the mechanism.

The horse does two jobs at once: blocking the king's escape, and serving as the cannon's required mount.

Xiangqi horse-and-cannon checkmate diagram: black king in check, red horse mounted directly below it, red cannon firing through the horse
King in check The horse: mount + escape guard
Black to move, black has no legal move — this position is checkmate.

Why every escape square is covered

The black king normally has three escape squares. Here, none of them work:

With every square covered and nothing able to block or capture, the king has nowhere to go.

How to actually set this up in a real game

You rarely get handed this for free — you build it. The usual recipe:

  1. Manoeuvre a horse to the square directly in front of the enemy palace, on the king's own file.
  2. Bring a rook or cannon onto that same file, behind the horse.
  3. If the king has no escape and nothing can interpose, the horse's arrival alone delivers mate.

Common mistake

Always verify the king's escape squares before committing the horse — not after — or the combination falls apart.

A real 550-year-old example

A genuine composed problem from 《适情雅趣》, a 1570 Ming-dynasty manual — one of the classical "big four" alongside 《橘中秘》 and 《梅花谱》.

This position is 「士马如云」 ("Officers and Horses Like Clouds") — Red to move and force checkmate, starting with a deliberately lopsided army.

Starting position of the classical Xiangqi endgame composition 士马如云 from 适情雅趣, Red to move
The starting position — Red's lone horse has already infiltrated Black's back rank.

The solution runs 21 half-moves — the cannon earns its way to the center file, and Black's king gets chased back there too, one step ahead of danger the whole way.

Position after Black's 20th half-move in the 士马如云 composition, one move before checkmate, Red horse about to deliver the final blow
One move before the finish — Black still has 42 legal replies here. The highlighted horse is about to change that.

Red's final move, 马四退五, does three things at once — blocks the escape squares, becomes the cannon's mount, and arrives too fast for Black to react. Checkmate.

Final checkmate position of the 士马如云 composition: Red horse mounted on the central file directly below the Black king, Red cannon firing through it for mate
King in checkmate The mating horse
Checkmate — the exact same pattern as the simplified diagram, this time earned over 21 half-moves.

The full move list

Standard Chinese notation, Red then Black. Set up the starting position above and follow along:

1. 车五进二 马七退五
2. 马四进六 将五平四
3. 炮二平六 马五进四
4. 马六进四 马四退五
5. 车七平六 将四平五
6. 炮六平五 马五进六
7. 车六平五 马六退五
8. 车五进一 将五平四
9. 车五退四 将四进一
10. 车五平六 将四平五
11. 马四退五 (checkmate)

Every one of these 21 half-moves was checked against our engine's real move-legality function before publishing — see "About this diagram" below.

Want to try spotting this pattern yourself?

Play Xiangqi free →

About this diagram

This position was verified programmatically against the same rule engine that powers our playable Xiangqi board — confirmed checkmate, not just "looks right."