A comet's tail is pushed away from the sun by the combined effects of solar wind and radiation pressure from sunlight.