In recent memory the Papal States had been invaded and annexed by the new Kingdom of Italy, which left the Pope a prisoner in the Vatican. The Church had become aware of the secret societies such as the Carbonari and warned the public against them in encyclicals for their strongly anticlerical and antisocial nature.