What causes the tail of a comet?

solar wind The heat from the sun