To keep unwanted visitors out of your garden, consider these fences that range from functional to pretty.

Kindra Clineff

Good fences make good gardens.

A fence also defines the perimeter of your garden and provides privacy if needed.

Country garden

Credit:Kindra Clineff

Picket Fence

Jason Donnelly

A classicpicket fencemade of white-painted wood is both practical and aesthetically pleasing.

With an average height of 3 and 4 feet, it is easy for deer to jump.

The wire mesh is stretched between poles of treated wood support panels.

White picket fence around raised bed tomato plant

Credit:Jason Donnelly

The wood panels sit atop a stone base to keep rabbits from burrowing under it.

In open terrain, the fence should be 7 to 8 feet high.

The small size of the mesh alsokeeps rabbits away.

Mesh vegetable garden fence

Credit:Kindra Clineff

A gate provides access to the compound.

However, its effectiveness against unwanted four-legged visitors is limited.

To add an elegant finish, cap its posts with wooden balls.

Vegetable garden privacy fence

Credit:Laurie Black

A lattice fence shields the area against prying eyes from the outside.

However, it does not obstruct sunlight and airflow in the same way as a solid fence does.

Surround a raised bed with netting, sides and top.

Vegetable garden with wood and wire fence

Credit:Kindra Clineff

Its easier and cheaper to install than more permanent fencing.

It is built with wood planks set horizontally against poles.

Vines climbing the fence adds to the country garden charm of this fence.

mixed raised beds and fenced garden

Credit:Kritsada Panichgul

With its tidy gate and spiky poles, the black fence in this image has a Victorian feel.

The panels will keep most pets out of your garden and add a decorative touch to your backyard.

To add visual depth, combine it with a tallerprivacy fenceat the rear of the property.

Garden lattice fence

Credit:Jason Donnelly

If staggered and aligned at varying heights.

the panels also conquer a slight slope, as shown in this image.

The wood has been left unfinished so the fence blends in with the landscape.

Vegetable garden with wire fence

Credit:Dean Schoeppner

Cover the frames with netting, which is a cheap temporary fence option that protects vegetable gardens from wildlife.

The thin steel fence poles draped with silver hog wire disappear into the landscape.

The fence keeps pets out but not rabbits, groundhogs, or deer.

Vegetable garden surrounded by wood and steel fence

Credit:Bob Stefko

Vegetable garden with wood and wire panel

Credit:Scott Morgan

Vegetable garden with privacy fence

Credit:Ryann Ford

Rustic country vegetable garden

Credit:Gabriela Herman

Modern vegetable garden with cattle fencing

Credit:Hector Sanchez