Choose the route for the drain, from the high point to the low point, where the runoff can discharge. Mark the route with a line of spray paint along the center.
Excavate a channel along the marked route by starting at the low point. Dig the channel 5 to 6 inches wide and 8 to 12 inches deep. Slope the channel to a minimum 1 percent grade or 1 foot of drop for every 100 feet in length.
Spread washed gravel along the base of the channel to a depth of 2 inches. Lay geotextile cloth on top of the gravel that is wide enough to wrap around the pipe when it's laid. Overlap any joints in the material by 12 inches.
Place the perforated PVC pipe onto the geotextile cloth. Lay perforations down for a French drain and up for a foundation drainage. Ensure the slope is maintained by shifting the gravel under the pipe, as necessary, to build or reduce the grade.
Use 45-degree elbows on the pipe, as necessary, if there are turns in the routing of the channel. Connect pipe lengths together with couplers manufactured for the type of pipe and make sure the connections are watertight.
Pack washed gravel to a 2-inch depth around the pipe. Leave the outlet end of the pipe exposed, or daylighted. Place 3 to 4 inches of coarse sand on top of the gravel, then add topsoil. Seed or sod the channel as desired.