The ion tail is produced when the comet approaches the inner Solar System. Solar radiation heats the comet nucleus and ionizes (electrically charges) the gasses. These combine with the charged particles coming from the Sun and the resulting magnetic field lines are blown outwards by the Solar Wind (away from the Sun).
Comets are icy-rock matter. As they get closer to the Sun, the Solar Wind and photons from the Sun push against the comet. This produces dust that is blown off of the comet away from the Sun (the dust tail).
Answers & Comments
The ion tail is produced when the comet approaches the inner Solar System. Solar radiation heats the comet nucleus and ionizes (electrically charges) the gasses. These combine with the charged particles coming from the Sun and the resulting magnetic field lines are blown outwards by the Solar Wind (away from the Sun).
Comets are icy-rock matter. As they get closer to the Sun, the Solar Wind and photons from the Sun push against the comet. This produces dust that is blown off of the comet away from the Sun (the dust tail).