What was the primary motivation for Charles Messier creating his famous catalog?

Answer

To create a catalog of fixed celestial objects so they wouldn't be confused with comets.

Messier was an anti-discoverer in that context; his main goal was documenting stable objects to avoid mistaking them for the comets he was actively searching for.

What was the primary motivation for Charles Messier creating his famous catalog?
discoveryAstronomernebulacelestial object