Skip to main content
CityRuleLookup

Gilroy, CA Fence Regulations: Retaining Walls (2026)

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

Key Facts

First wall (with fence)
3-foot max within 5 feet of line
Second wall buffer
None allowed within 5 feet of first
Additional wall beyond buffer
6-foot max height
Commercial/industrial parallel rule
Same limits, § 30.34.30(b)(2)

Summary

In the City of Gilroy, a retaining wall built with or next to a fence within five feet of a property line is capped at three feet, and any second retaining wall within five feet of the first tops out at six feet, per City Code § 30.34.30(a)(4).

(4) Where a fence is built upon or in conjunction with a retaining wall within five (5) feet of a property line, the maximum height of the retaining wall shall be three (3) feet. No additional retaining walls may be constructed within five (5) feet of the first wall; the maximum height of any additional retaining wall shall be six (6) feet.

Full Breakdown

City Code § 30.34.30(a)(4) governs retaining walls combined with fences in residential districts: where a fence is built upon or in conjunction with a retaining wall within five feet of a property line, the retaining wall's maximum height is three feet. The rule then prevents stacking taller walls close together: no additional retaining wall may be built within five feet of that first wall, and any additional retaining wall built beyond that five-foot buffer is capped at six feet. The identical three-foot and six-foot limits apply in commercial and industrial districts under the parallel provision at § 30.34.30(b)(2), so the standard does not change based on zoning once a fence sits atop or beside the wall.

These limits sit within the broader fence article whose intent, stated in § 30.34.10, is to control the location, height and materials of fences and obstructions so they do not adversely affect adjacent properties or block sightlines along public streets. A retaining wall built without any accompanying fence is not covered by this height cap and instead falls under the city's building and grading permit requirements administered by Community Development.

Violations & Fines

Constructing a fence-and-retaining-wall combination that exceeds the three-foot or six-foot limits of § 30.34.30(a)(4) is an infraction under City Code § 30.53.20, punishable per Government Code § 36900, with each day of continuing violation a separate offense, and the city attorney may pursue removal as a public nuisance under § 30.53.30.

Frequently Asked Questions

How tall can a retaining wall be if I'm putting a fence on top in Gilroy?
If the retaining wall sits within five feet of the property line, § 30.34.30(a)(4) caps it at three feet before any fence is added on top; a second wall within five feet of the first is not allowed at all.
Can I build two stacked retaining walls near my property line?
Not within five feet of each other. City Code § 30.34.30(a)(4) blocks any additional retaining wall within five feet of the first; only a wall built beyond that five-foot buffer can go up to six feet.
Does the retaining wall rule differ for commercial property in Gilroy?
No. The three-foot and six-foot limits are mirrored for commercial and industrial districts at § 30.34.30(b)(2), so the height cap is the same regardless of the underlying zone once a fence is involved.

Sources & Official References

Other rules in Gilroy

All Gilroy rules

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

Get notified when Retaining Walls in Gilroy, 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 Nearby Cities

How other cities in Santa Clara County handle retaining walls.

Mountain View, CA
Some Restrictions
San Jose, CA
Some Restrictions
Santa Clara, CA
Some Restrictions