When an object from outer space enters the Earth’s atmosphere, it starts to burn up and creates a brilliant streak in the sky, which we call a meteor or shooting star. Contrary to popular belief, this is not due to friction with the air in the atmosphere.
An object entering the atmosphere is typically travelling at extraordinary speeds. Most meteors are travelling around 20km/s (or 72000km/h) when they hit the atmosphere. At these speeds, air molecules do not have a chance to move out of the way. The meteor will instead collide into the air molecules, pushing them closer and closer to each other, compressing the air in front of it.
As we know from physics class, compression increases temperature in gases as per the ideal gas law (PV=nRT). The impressive entry speed of these meteors result in so much air compression that their surface can heat up to 1650 degrees Celsius.
The heat boils and breaks apart the contents of the meteor, turning it into superheated plasma that gives off a glow. This is the streak of light that we see in the night sky when we wish upon a shooting star.