Why do stars twinkle?
Short answer
Starlight passes through air layers with different temperatures and densities, which bend the light slightly and make the star appear to vary.
How it works
Stars are so distant that they appear as points. Small atmospheric changes therefore make their brightness and apparent position noticeable.