You can cast this spell while in an area with rocky terrain or with solid stone under the soil. A wall of solid stone suddenly bursts up from an area of ground you can see within range. The wall makes a loud grinding sound as it is quickly raised from the earth. The wall can be up to 20 ft long, 10 ft tall and 2 ft thick, and is composed of the material on the ground, for example clay, rock, or stone. The wall takes material from beneath and around it to form. Once created, the wall is a nonmagical normal wall that is permanent.
If a creature is in the way of the wall, the creature is pushed to one side of the wall (your choice). If a creature would be surrounded on all sides by the wall (or the wall and another solid surface), that creature can make a DC 15 Dexterity saving throw. On a success, it can use its reaction to move up to its speed so that it is no longer enclosed by the wall.
You can use this spell to bridge a chasm or create a ramp, if the material is sturdy enough. You can crudely shape the wall to create crenellations, battlements, and so on.
The wall is an object made of stone that can be damaged and thus breached. Each 5 x 5 ft section of wall has AC 15 and 30 hit points per ft of thickness. Reducing a section to 0 hit points destroys it and might cause connected sections to collapse (DM's choice).