Contact your local utilities about digging fence post holes. They will check for underground cables and lines and mark them so you don't dig into them and damage or cut any utility or power lines.
Contact your local building and zoning board to find out if the type of fence you want to install is allowed and whether you need a permit to construct it.
Measure the area you will enclose with the fence and mark the fence post locations 6-½ feet apart.
Dig fence post holes, line them with 1/2 inch of sand and 2 inches of pea gravel, place the posts into holes and fill around the posts with cement. Allow the cement the dry for at least 24 hours. Brace the fence posts to keep them straight and level while the cement is drying.
Screw two boards to the fence posts at the top edge of the posts and 2 feet from the bottom of the posts. Attach all the boards on the same side of the fence posts, either on the inside or outside faces of the posts. Work your way along the total length of the fence, attaching boards to posts in this same manner.
Attach a gate between the last two fence posts. Lay two boards on the ground, horizontally and parallel to each other 2 feet apart. Screw two 4-foot strips of wood vertically to the left and right sides of two boards, and two more at equal intervals inside the outer two. Attach two hinges to one side of the gate and one fence post.