Freemasonry (and secret societies of the same style) was very active in the Age of Revolution and participated in the uprooting of the Church's power base.
As an active Catholic, Freemasons have always been seen with extreme suspicion, if not outright fantasies. But you could say the same of the way Catholics are perceived in some places, in particular among Anglo-Protestants and Socialists.