Gilroy, CA Fence Regulations: Retaining Walls (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?
Can I build two stacked retaining walls near my property line?
Does the retaining wall rule differ for commercial property in Gilroy?
Sources & Official References
Other rules in Gilroy
California rules heatmap·Compare Gilroy to another location·View the California fence regulations overview
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.