Select the material best suited for the garden fence. Wire mesh is a popular choice for garden fences because it is quick, easy and inexpensive when compared to other choices. Fence material for this type fence is available in 3-, 4- and 6-foot heights. Unless leaping gazelles or deer are a problem, a 3- or 4-foot fence should be adequate.
Measure the perimeter of the garden along all four sides. Add the four sides together to find the amount of material needed. Typically, a fence has posts positioned about 8 feet apart. This is not a rule but a good guide to follow. With more than 8 feet between posts, the fence is weaker and has a tendency to sag or bow. Don't forget to add an extra post or two for the gate and any miscalculations.
Drive small wooden stakes in the ground about 2 feet beyond the corners of the garden, allowing room for the corner posts. Tie a string to one corner stake, pull it taut to the other corner stake, and tie it off. The string represents the position of the future fence and provides a guide for aligning the fence posts.
Dig holes to bury the fence posts along the string line. Space the post holes out evenly between the two corners. Do not exceed 8 feet between any two posts. Bury the posts about 2 feet deep, and pack dirt in tightly around them. A rake handle works great for this task. Once all the posts are in place, the fence material is ready to be attached to the posts.
Wrap the wire mesh partly around the first corner post, and staple it to the post from top to bottom. Use fence staples driven with a hammer. Unroll the fencing along the length of one side of the garden. Stretch the wire mesh tightly, and have a helper fasten the fence to each post with fence staples. When the fence is fastened in place, continue stretching the material along the second side of the garden, and fasten it to the posts. Continue this process until the garden is fenced in.
Find the best location for the gate, and set a second post. This post should be about 48 inches from the nearest adjacent post. Fasten the fence wire firmly to both posts, and cut the wire mesh in the middle. Fold the wire mesh back in each direction, and wrap around each post. Staple securely, and cut off any excess wire mesh.
Install a purchased gate, or build one from 2 x 4's and wire mesh. Simply build a square with the 2 x 4's the size of the gate opening, and stretch the wire mesh across one side. Staple the mesh to the gate frame, and hang it with hinges on one of the posts. Install a gate latch on the opposite side from the hinges.
Install 1 x 4 wooden strips along the entire length of the fence for added support and looks. Nail the top wooden strip along the top edge of the wire mesh. Nail the bottom wooden strip just off the ground along the bottom. Staple the mesh to the 1 x 4 strips from the inside, along the entire length of the fence.