The upkeep step is the second step of the beginning phase. At the beginning of the upkeep step, any abilities that trigger either during the untap step or at the beginning of upkeep go on the stack. Then the active player gains priority the first time during his or her turn.