In this d&d 5e maze spell you make to do banish a creature which you can see within a range into the labyrinthine Demiplane. Actually, the target would remain there for a specific duration or even until it escapes the maze.
The target have a chance to use its action for attempting to escape. But whenever it does so, it will make a DC 20 Intelligence check. Any how, if it succeeds, and it escapes, and also the spell ends (a Minotaur or Goristro demon automatically succeeds).
You can also read about creation spell 5e
Whenever the end of this spell, the target would reappear in the space it left or, if that space has been occupied, in a nearest occupied space.
Attributes Of Maze 5E Spell
|Casting Time||1 action|
|Duration||Up to 10 minutes|
|Target||A creature that you can see within range|