If your retaining wall exceeds a certain height limit, you'll likely need to secure a permit before you start building.