Cast Acererak either from your hand or from the command zone by paying and commander tax, if applicable.
When Acererak enters, its first ability triggers.
Holding priority, activate Relic of Legends' second ability by tapping Acererak, adding .
Resolve the Acererak trigger, returning it from the battlefield to your hand, and venturing into Lost Mine of Phandelver.
Repeat.
This ingenious loop turns Acererak the Archlich into a self-returning engine by leveraging its own entry trigger to bounce itself back to your hand before it can complete the Tomb of Annihilation. Because Acererak is legendary, Relic of Legends provides the exact black mana needed to recast him while tapping him to avoid the battlefield entirely, while Planar Gate steps in to discount his casting cost so the loop becomes completely mana-neutral. As Acererak endlessly enters and leaves the battlefield, you can repeatedly venture into the Lost Mine of Phandelver to cycle through the dungeon room effects indefinitely, generating an unstoppable cascade of near-infinite resources.