You summon a portal that connects an unoccupied space you can see within casting distance to a specific location on a different plane. A portal is a circular opening that you open, 5 to 20 feet in diameter. The opening faces in any direction you choose and lasts until the spell ends.

Gate 5e

Level: 9th

Classes: Wizard, Sorcerer, Cleric

Casting Time: 1 Action

Range: 60 feet

Components: V, S, M

Duration: Concentration, up to 1 minute

Portal has a clear positive and negative side when manifested on a surface. Only things that pass through a portal from the front can teleport, and thus teleport to the other plane and appear in the unoccupied space closest to the portal.

Deities and other planar rulers can prevent the spell from creating portals anywhere they are or belong in their realm.

When casting this spell, you may speak the name of a particular creature (it cannot be a pseudonym, title, nickname, etc.). If the creature is in a different realm than you, the portal opens next to the named creature and sucks the creature into the portal.

The creature then appears from the other side of the portal from where you are, and appears in the unoccupied space closest to the portal. You don’t gain any special abilities from the creature, and it is free to do whatever the DM sees fit. It may leave, or it may attack you or assist you.