Skip to main content
CityRuleLookup

Marin County, CA Fence Regulations: Retaining Walls (2026)

Light Restrictions
Compiled from the official code textEditor Martyn O'NeillLast verified September 2026

Key Facts

Code Section
Marin Co. Dev. Code § 22.20.052
Inward-Facing Wall Max
6 feet above grade
Outward-Facing Wall Max
4 feet (8 ft if 25+ ft from property lines)
Building Permit Threshold
Walls over 4 ft (footing to top)

Summary

Retaining walls in unincorporated Marin County may reach 6 feet above grade when the exposed face points inward, or 4 feet when facing outward (8 feet if 25+ feet from all property lines), under Development Code § 22.20.052.

City-specific rules exist: San Rafael has its own retaining walls rules that differ from Marin County's county-level regulations. If you live in San Rafael, check the city-specific page instead.

Retaining walls may reach a maximum height of six feet above grade if the exposed face of the retaining wall faces into the center of the property. Retaining walls may reach a maximum height of four feet above grade if the exposed face of the retaining wall faces outward from the center of the property, unless they are at least 25 feet from all property lines, in which case they can reach a maximum height of 8 feet above grade.

View official code

Official source re-checked September 7, 2026: no newer edition of the code had been published (publisher’s edition: Municipal Code: Supplement 2026 Update 1).

Full Breakdown

Marin County Development Code § 22.20.052 (Retaining Wall Standards) governs retaining walls separately from fences. A retaining wall whose exposed face points toward the interior of the property may reach a maximum height of 6 feet above grade. A retaining wall whose exposed face points outward (away from the center of the property) is limited to 4 feet above grade unless it is set back at least 25 feet from all property lines, in which case the maximum is 8 feet. Multiple stepped or terraced walls may be treated as a single wall for height calculation purposes. Retaining walls over 4 feet measured from the bottom of the footing to the top of the wall require a building permit per the California Building Code adopted by Marin Title 19.

Violations & Fines

Walls exceeding the height limits or built without required permits are subject to stop-work orders, after-the-fact permits, and removal demands. Structurally inadequate walls may also be cited as unsafe under Title 19.

Frequently Asked Questions

How tall can a retaining wall be in unincorporated Marin?
Up to 6 feet if its exposed face points inward toward the property center, or up to 4 feet if it faces outward (up to 8 feet if at least 25 feet from all property lines) under § 22.20.052.
Do retaining walls need a building permit?
Yes, retaining walls more than 4 feet tall (measured from bottom of footing to top of wall) require a building permit under the California Building Code as adopted by Marin Title 19.

Sources & Official References

Other rules in Marin County

All Marin County rules

California rules heatmap·Compare Marin County to another location·View the California fence regulations overview

Get notified when Retaining Walls in Marin County, CA changes

We'll email you the moment we detect a change in the code. No spam, unsubscribe anytime.

We'll never sell or share your email. One-click unsubscribe in every email.

See something wrong?

Help us keep this page accurate. If you notice an error or outdated information, let us know.

Retaining Walls in Cities Across Marin County