What should a defender do when facing exactly two attackers near the palace?
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
Trade one of the two attackers off if you possibly can. Because nearly every standard mate needs two coordinated pieces, reducing an attack from two to one usually reduces the danger from decisive to manageable, since a single attacker on its own is almost always answerable by an ordinary defender.
Why removing either attacker works
Most mating patterns split responsibility between the two attackers, one gives check, the other covers escape points. Remove either half of that partnership and the whole plan collapses, regardless of which specific piece you managed to trade off.
When trading is not available
If neither attacker can be captured or driven away, the next best option is bringing a defender home fast enough to cover the escape point the two attackers are jointly targeting, effectively adding a third piece to the equation on your own side.
Related questions
Does it matter which of the two attackers I trade off?
Usually not much, removing either one breaks the coordination, though trading the more active piece is generally the safer choice if you have to pick.
Is one attacker ever enough to mate on its own?
Rarely, unless the defender's own structure has already sealed off the remaining escapes. See why a lone attacker rarely checkmates the general.