Comets go around the Sun in a highly elliptical orbit. This is due to the fact that the planes of revolution of comets are not limited to the plane of the ecliptic in which the planets rotate.
As the comet comes closer to the Sun, the warming of its surface causes its materials to melt and vapourise, producing the comet's characteristic tail. A comet is an icy, small solar system body that, when passing close to the Sun, warms and begins to release gases through a process called out-gassing. This produces a visible atmosphere or coma, and sometimes also a tail. These phenomena are due to the effects of solar radiation and the solar wind acting upon the nucleus of the comet. Comet nuclei range from a few hundred metres to tens of kilometres across and are composed of loose collections of ice, dust, and small rocky particles.