Sunlight does not reach the Earth surface equally and cause, uneven heating of the Earth surface and wind formation, which answer explains why uneven heating of earth surface produces wind

Uneven heating of the Earth's surface causes differences in temperature between various regions. Warm air is less dense and rises, creating areas of low pressure, while cooler air is more dense and sinks, creating areas of high pressure. Wind is the movement of air from areas of high pressure to areas of low pressure, which helps to equalize the temperature differences and distribute heat more evenly across the globe.