A well-built garden enclosure uses tight mesh at ground level, steady posts, and a gap-free gate so animals stay out and crops stay intact.
A garden can look fine at dusk and still be stripped by morning. Rabbits snip seedlings, dogs sprint through beds, and deer sample everything that’s tender. An enclosure turns that chaos into a routine you can manage, as long as you build for the animals you actually get and you don’t leave easy gaps.
Below you’ll get a step-by-step build that fits most yards, plus tweaks for rabbits, digging pests, and deer. You’ll also see where fence rules can affect height and materials, so you don’t redo work after the fact.
Start with goals, limits, and a simple map
Write two short lists: what must stay out, and what must still get in. Your list might include rabbits, deer, neighborhood dogs, or chickens. Your “get in” list should include people, a wheelbarrow, a hose, and sunlight.
Mark the fence line with stakes and string
Walk the garden edge and place a stake at each corner or change of direction. Run string between stakes so you can see straight runs and clean corners. Measure each run and add the lengths for your total perimeter.
Leave a mowing strip outside the fence when you can. A narrow strip of grass you can trim makes the fence easier to inspect and keeps weeds from pushing wire out of shape.
Pick the animals that drive height
Small pests are mostly a “bottom edge” problem. Deer are a height problem. If deer browse in your area, plan a tall fence or an electric setup from day one. University of Minnesota Extension gives a clear overview of fence and netting options for common garden pests, including deer: keeping animals out of your garden.
Choose an enclosure style that fits the job
You don’t need one fancy design. You need a barrier that matches your threat list and the time you can spend maintaining it.
Mesh fence on posts
This is the workhorse. Welded wire or hardware cloth attached to posts handles most rabbits, dogs, and many digging pests when the bottom edge is secured. It’s also easy to patch after a season of use.
Decorative panels with an inner liner
If you want a cleaner look, panels can define the space. Panels alone often leave openings near the ground. Add a strip of small-opening mesh on the inside bottom section to stop rabbits and to block noses from pushing through.
Electric strands for heavy deer pressure
Electric fencing can work well when set up correctly. It takes routine checks, and placement matters. Follow the charger maker’s directions and any local rules.
Bed fabrics for birds and squirrels
Row fabric and netting over hoops protect tender crops and berries. Treat these as add-ons that pair with a perimeter fence. They wear out faster than wire, so plan for seasonal replacement.
How To Enclose Garden? With posts, mesh, and a real gate
If you want one build that fits most yards, start with posts plus mesh, then tune the bottom edge and height to your pests. The steps below assume a rectangle or a simple polygon.
Step 1: Set corner and gate posts first
Corners and gates take the most strain, so build them first. For metal posts, drive them deep enough that they don’t wobble under hand pressure. For wood posts, dig holes and set posts plumb. A deeper set helps in soft soil and freeze-thaw areas.
Step 2: Add braces at corners and gates
Mesh pulls hard once you tension it. Without bracing, a corner leans and the fence loosens. A basic brace uses two posts with a horizontal brace rail or a diagonal tension wire. Put braces at corners and on both sides of the gate opening.
Step 3: Install line posts at steady spacing
For 3–4 foot fences, space posts around 6–8 feet apart on straight runs. For 5–6 foot fences, aim for 6–7 feet. For taller fences, tighten spacing and use stronger posts. Keep post tops level so the mesh line looks clean.
Step 4: Hang and tension the mesh
Stand the roll of wire along the posts and start at a braced corner. Attach the mesh to the first post with staples (wood) or clips (metal). Then pull the mesh tight along the run and fasten it at each post.
Work one run at a time. If you tension a full perimeter in one go, it’s easy to end up with slack in the last stretch.
Step 5: Lock down the bottom edge
Most break-ins start under the fence. Use one of these bottom-edge methods:
- Buried apron. Extend mesh down, bend it outward on the ground, then bury it under soil or mulch.
- Vertical bury. Dig a shallow trench and bury the mesh straight down 6–12 inches.
- Pinned edge. For hard ground, pin the mesh tight to soil with U-shaped staples every 12–18 inches, then bank mulch against it.
Iowa State University Extension notes that wire barriers work best when they’re tall enough for the animal and anchored so rabbits can’t slip underneath: protect trees and shrubs from animal damage.
Step 6: Build a gate that shuts flush
A gate is where most fences fail. Use a rigid frame and a latch that pulls the gate tight to the latch post. Leave a small gap under the gate so it swings over mulch, then block that gap with a strip of mesh attached to the gate bottom or a threshold board that closes the opening.
Details that stop “easy wins” for pests
Two fences can use the same wire and still perform differently. The difference is seams, corners, and the spots you step over or open daily.
Overlap seams instead of butting edges
When two mesh ends meet, overlap them by at least one full square. Tie them together every few inches. A butt joint opens the first time an animal pushes on it.
Handle slopes without making tunnels
On a slope, a straight top line creates gaps at the bottom. You can “step” the fence in short drops, which keeps the bottom edge tight. Patch the small triangles at each step with scrap mesh wired in place.
Keep a clear strip near the fence
Brush, tall weeds, and stacked items give animals hiding spots right next to the wire. Keep that zone clear so you can spot lifted edges and fix them before damage spreads.
| Problem at your garden | Fence setup that fits | Detail that blocks gaps |
|---|---|---|
| Rabbits clipping seedlings | 24–36 inch fence with 1-inch or smaller openings | Pin or bury the bottom edge; add a tight gate sweep |
| Dogs charging through beds | 48 inch welded wire on sturdy posts | Use closer post spacing; brace gate posts |
| Deer browsing leaves and fruit | 6–8 foot fence or electric strands | Remove low spots under wire; keep the gate line tall too |
| Groundhogs digging under | Welded wire plus buried apron | Extend apron 12–24 inches outward and bury it |
| Chickens scratching beds | Mesh fence with a latch gate | Run mesh tight to soil; patch peck points early |
| Kids and pets needing a boundary | Decorative outer fence plus inner mesh strip | Fasten mesh on the inside bottom zone |
| Birds hitting berries | Perimeter fence plus seasonal netting over plants | Clip net edges tight so birds don’t slip under |
| Squirrels reaching fruit | Perimeter fence plus row fabric on target beds | Secure row fabric edges with weights or pins |
Fence rules, permits, and property lines
Fence rules vary by place, and height is often the trigger. Some areas want a permit for taller wood fences, masonry fences, or fences used around pools. If you’re building tall posts or placing a fence near a sidewalk, check local rules first.
Portland’s permit page is a useful model for the sort of thresholds cities use: fence permits and height thresholds. Even if you live elsewhere, the checklist shows the kinds of questions your own city may ask.
Also mark your property line before you dig. If you’re unsure where it runs, use a recent survey or hire a locator. A fence that crosses a line can turn into a costly redo.
Material choices that last without fuss
Pick materials based on what hits your fence: chewing, leaning, rain splash, and soil contact.
Mesh type
Welded wire is a strong general option. Hardware cloth gives smaller openings near the ground, which helps with rabbits and rodents. Chicken wire is easy to shape but bends fast, so it fits only for light pressure or as a short-term inner layer.
Posts and fasteners
Metal T-posts go in fast and hold tension well. Wood posts look traditional and take hinges easily. Use galvanized or stainless fasteners so rust doesn’t turn into loose wire in a single season.
Gate hardware
Use outdoor-rated hinges and a latch that holds the gate tight. A gate that swings freely but closes with a gap is an open door to small pests.
Maintenance that keeps the fence tight
A garden fence gets tugged, bumped, and stretched. Short checks keep it working.
Do a weekly walk during peak growth
Scan the bottom edge, seams, and the gate. Trim plants that lean into the mesh. Replace broken ties before they become a sagging section.
Check after storms and mowing
Storms can drop branches onto wire. Mowers can nick ties or lift an edge. After either one, look for bent posts, lifted aprons, and gaps under the gate.
| When to check | What to look at | Fast fix |
|---|---|---|
| Every 7 days | Gate sag, latch pull, hinge screws | Tighten hardware; add a diagonal brace cable if needed |
| After heavy rain | Washed-out soil at the bottom edge | Re-bury the apron or add pins and fresh mulch |
| After mowing | Lifted wire or clipped ties | Replace ties; add staples or clips in that zone |
| Monthly | Leaning posts and loose corners | Reset posts; re-tension mesh at braces |
| Start of season | Rust spots and weak seams | Patch with overlap mesh and fresh ties every few inches |
| End of season | Netting wear and storage | Dry and store netting out of sun between uses |
Common mistakes that wreck a good build
- Leaving the bottom edge loose. This is where rabbits and diggers get in.
- Skipping corner braces. Corners lean once the mesh is tight.
- Building a flimsy gate. Gates sag, gaps appear, and animals learn the spot.
- Using wide openings near the ground. Small animals squeeze through what looks “too small.”
- Letting growth press into the wire. Wire bends, ties break, and holes stay hidden.
A practical plan you can follow today
Measure the perimeter, pick a fence height based on your worst pest, and use mesh on steady posts. Treat the gate and the bottom edge as the two spots that decide success. Once it’s up, keep the fence line clear and patch tiny gaps right away.
References & Sources
- University of Minnesota Extension.“Keeping animals out of your garden.”Summary of barrier choices like fencing, netting, and taller options for deer.
- Iowa State University Extension and Outreach.“How to protect trees and shrubs from animal damage over winter.”Notes on wire barrier height and anchoring so rabbits can’t slip under.
- City of Portland.“Fence permits.”Explains when a permit is needed based on fence height and materials.
