Plant ground cover on slopes and build retaining walls.
In mudflow areas, build channels or deflection walls to direct the flow around buildings.
Remember: If you build walls to divert debris flow and the flow lands on a neighbor's property, you may be liable for damages.