A small object made of frozen gas and dust is called a comet.
Comets are essentially icy, dusty snowballs that orbit the Sun. As they get closer to the Sun, the ice heats up and vaporizes, creating a bright tail that can stretch millions of kilometers.