Comets can last for thousands to millions of years, but their nuclei gradually erode with each pass near the Sun. Eventually, they may break apart or lose all their volatile materials.