[RPG] get an ally out of grapple with Thunder Step

dnd-5egrapplespells

Provided the ally is the same size or smaller than me, is within 5 feet of me and that there is space for him at the space I teleport to could I Thunder Step him out of grapple?

Thunder Step:
You teleport yourself to an unoccupied space you can see within range. Immediately after you disappear, a thunderous boom sounds, and each creature within 10 feet of the space you left must make a Constitution saving throw, taking 3d10 thunder damage on a failed save, or half as much damage on a successful one. The thunder can be heard from up to 300 feet away.
You can bring along objects as long as their weight doesn’t exceed what you can carry. You can also teleport one willing creature of your size or smaller who is carrying gear up to its carrying capacity. The creature must be within 5 feet of you when you cast this spell, and there must be an unoccupied space within 5 feet of your destination space for the creature to appear in; otherwise, the creature is left behind.

Best Answer

Yes this will work

The Grappled condition states:

[...] The condition also ends if an effect removes the grappled creature from the reach of the grappler or grappling effect, such as when a creature is hurled away by the thunderwave spell.

There are already quite a few questions on different methods of escaping a grapple including (but not limited to):

All of these work as ways to get a creature out a grapple because they remove the grappled creature from the reach of the grappler. The last one in particular mentions misty step as a means of escaping a grapple which shows that teleportation is a valid means of escape. Now looking at the thunder step spell, we see that it states:

[...] You can also teleport one willing creature of your size or smaller who is carrying gear up to its carrying capacity. The creature must be within 5 feet of you when you cast this spell, and there must be an unoccupied space within 5 feet of your destination space for the creature to appear in; otherwise, the creature is left behind.

No part of this says that the creature must not be grappled or provides any restrictions that would prevent a grappled creature from being teleported. Thus, a grappled creature is a valid target. Additionally, nothing in the grappled condition prevents the creature from being moved by something like thunder step, similar to how misty step would work, so this too will work.