Answer:
Friction slows the wind and changes its direction. This effect can cause turbulence in winds near the surface or boundaries between areas with different surface roughnesses. Turbulence mixes the lower part of the atmosphere, stabilizing the temperature.