# Drawstep engine · Effects · `endCombat` > End combat — "End the combat phase" (CR 506.1, 716 by analogy; Mandate of Peace rulings): exile every spell and ability on the stack (the resolving card too), check state-based actions, remove all creatures from combat and end "until end of combat" effects, then skip the end of combat step to the next phase. Only during a combat phase. Engine: Magic: The Gathering (`mtg`). This is one primitive of the Drawstep card vocabulary; field names and the discriminator are exact. Wiki page: https://drawstep.xyz/wiki/mtg/effects#endCombat ## Where it goes One step of an ability's `effects[]` (a spell's, a trigger's, an activated ability's, a mode's): `{ "effect": "endCombat", … }`. Steps resolve in order. ## Fields No fields besides the discriminator. ## Minimal form ```json {"effect":"endCombat"} ``` The engine reads that minimal form as: “end the combat phase”. ## Stock examples - **Mandate of Peace** — “Cast this spell only during combat.” ```json {"effect":"endCombat"} ``` - **Merciful Mandate** — “Untap all creatures you control. If it's a combat phase, you may end the combat phase.” ```json {"effect":"endCombat"} ``` ## Related - [Effects](https://drawstep.xyz/wiki/mtg/effects.md) — the whole topic - [Start here](https://drawstep.xyz/wiki/mtg/start.md) — the rules, the output contract and the index of every primitive