3

They built a wall to avoid soil being washed away. - Oxford Advanced
Learner's Dictionary
I think it is better to say They built a wall to prevent/stop soil from being washed away. “Prevent” is used when you want to stop something from happening, while “avoid” is used when you want to stay awa...