Phases
Let's go through the structure of a turn in magic - read more here turn structure:
- Untap step
- phased out cards phases in, card on the battlefield with phasing phases out. Tapped permanents that phases in, gets to untap.
- The player whos turn it is, untap all permanents that are able to untap.
- Upkeep step: pay upkeep and play abilities that can only be played in the upkeep. Upkeep itself is a triggerede ability, hence it is placed on the stack.
- Draw step:
- You draw a card.
- Abilities that trigger at the beginning of the draw step, goes on the stack
- You gain priority.
- Main phase 1: here you can cast things at sorcery speed plus lands.
- Combat phase: attack
- Main phase 2: same as main phase 1.
- End step: last chance to peform actions before next players turn.
Mana in your mana pool is emptied between each phase. That's also true for your mana during your opponent(s) phases.