Why does air expand when its warm?

because warm molecules have more energy and movement and either rise when warm or expand if they're warm or surrounded by warmness.