Comets are small objects that orbit the sun from the outer parts of the solar system. They are classified into two categories: short period comets and long period comets. Short period comets orbit the sun in less than 200 years, while long period comets orbit in more than 200 years.