While the Earth's rotation does play a role, it is a somewhat indirect one. The primary factor that affects the formation of winds is differences in atmospheric pressure. As is true throughout nature, any fluid will try to move from a region of high pressure to a region of low pressure.