Why is there weather?

Basically, the sun heats the earth and its atmosphere causing differences in air temperature. The warm air rises from the equator and travels towards the poles.