In short, replicate nature. Any ecosystem given suitable conditions will progress through the natural succession process until it eventually becomes a forest, so in the vast majority of lands suitable for agriculture, a food forest is the solution. By using syntropic agroforestry techniques, soil fertility can actually improve over time.
Examples: