Why do stars twinkle?

Stars appear to twinkle because the light from these distant objects passes through wobbly air in the atmosphere.