How to run electircal wire underground?
you need conduit rated for outdoor use. It's typically PVC, gray in color, and is UV rated (so it doesn't break down in sunlight)
check local electrical codes to be certain (though I think 18" is typical)