How to give checkmate in the game of xiangqi?
The best pieces for giving checkmate are the chariots and cannon that move in straight lines and at long range. Horses can be used, but only at close range, which is to say that they are vulnerable to counterattack by the guards and elephants. It's helpful to realize that the two leaders are limited to nine points of their "headquarters."

The "textbook" method of checkmate is the double cannon attack. If you manage to get both cannons on the vertical line in front of the enemy leader with the other soldiers removed, and the other pieces in their original position, the leader can't move sideways because he is surrounded by the guards. The "back" cannon fires over the forward cannon at the leader, and the leader can't block it with a guard or elephant, because then the forward cannon will fire over it.

Another thing you need to know is that the two leaders can't be on the same vertical line with no pieces between them. So you might use a chariot to drive the other leader to one side, while your own leader controls the central file (after the soldiers have been exchanged), and then movie the chariot to check and checkmate the leader on one of the side files of the two headquarters.