Terroir refers to the environmental factors that affect the characteristics of coffee beans, including soil, climate, altitude, and topography. These factors contribute to the unique flavor profile of coffee from different regions, making terroir a key concept in specialty coffee.