What was the primary original purpose of Charles Messier compiling his catalog?

Answer

To list deep-sky objects that might be confused with comets.

Charles Messier compiled the catalog primarily as a list of deep-sky objects that he was hunting for, specifically those that could be mistakenly identified as comets.

What was the primary original purpose of Charles Messier compiling his catalog?
astronomyoldestMessier objectMessier objects