Soil erosion can be prevented or controlled through afforestation, terracing, building retaining walls, practicing no-till farming, and maintaining ground cover with plants or mulch to protect the soil surface from erosive forces like wind and water.