What makes the flu vaccine effective in preventing illness during flu season?

What makes the flu vaccine effective in preventing illness during flu season?