A soldier on the enemy side of the river covers a point the general needs.
The soldier closes the door
Black's general stands on d8 with advisors on d9 and e8. A Red soldier on d6 watches d7, and the chariot on a3 has an open file.
Movesa3a8
a3a8 The chariot checks along rank 8. The general cannot step to d7, because the soldier on d6 attacks it, and its advisors fill d9 and e8. Nothing can block on b8 or c8. Checkmate.
Do not underestimate the soldier. Once it has crossed the river it attacks forward and sideways, which covers points inside the palace that bigger pieces cannot reach.
The pattern
The chariot gives check along a rank.
A soldier stands one step from the palace and attacks the only free point in front of the general.
Advisors on the other two sides leave no room at all.