What was Charles Messier's primary astronomical goal during the mid-18th century?

Answer

Tracking comets

Charles Messier was deeply invested in tracking comets, and he created the catalog to record stationary, cloudy objects so he would not mistake them for a new comet.

What was Charles Messier's primary astronomical goal during the mid-18th century?
Historydiscoveryastronomynebulae