Remove any topsoil, gravel and other rocks from the drain. Unless the gravel will be replaced altogether, roughly separate the materials and place them on different tarps for reuse.
Remove and inspect the piping from the bottom of the trench, if there is piping. If the pipe is clogged with sand, clear it using a strong blast of water, a plumber's snake, a wire brush or another suitable tool. If the pipe is broken or crushed, replace the broken section.
Reshape the trench. Use a shovel and spade to square the trench, removing any silt and sand that has collected in the trench. Make sure that the bottom of the trench is at the ideal depth and has a slight slope to facilitate flow away from the structure.
Line the inside of the trench with landscaping cloth or filter fabric.
Lay the pipe, if a pipe is being used, in the bottom of the trench. Use the level to make sure that the pipe is slightly sloped.
Hose off or otherwise clean the gravel or rocks, or replace with clean gravel or rocks.
Place at least 12 inches of clean, coarse gravel on top of the pipe.
Fold the filter fabric over the gravel. The filter fabric will allow water to drain but prevent the passage of sand, silt and debris.
Refill the remainder of the trench with gravel or topsoil.
Address the source of sand if it is a surface issue. Plant grass in a strip on one or both sides of the drain, or spread gravel to reduce the amount of sand washing into the drain.