Borrowed from wine, terroir describes all environmental factors that contribute to a coffee's flavor: soil minerals, altitude, rainfall, temperature variation, surrounding plants, and microorganisms. Washed coffees express terroir most clearly.
Two farms 5 km apart in Huila can taste completely different due to soil, shade trees, and microclimate. That's terroir — and it's why single-origin coffee is interesting.