The two major driving factors of wind are the differential heating between the equator and the poles, and the Earth's rotation.