Solar wind
Solar wind also causes the tail of a comet. When the comet is close enough to the sun that the heat evaporates some of the comet's ice, the motion of the solar wind causes the resulting water vapor and space dust to stream away from the comet. Because it is blown by the solar wind, the comet's tail does not trail behind it, but always points directly away from the sun.