The spark heats up the air to tremendous temperatures (into a plasma), which then emit their energy as light.
Originally posted by think And what makes spark to emit light?
Atoms are electric charges, right? Right. They have electric field around them. When you shake an atom (say, atom is fast thermal motion in a spark), then field begin to shake too. This shaking electric field is what we call "light".