It had been around for quite a while, but was especially electric after the Vatican's first official proclamation of papal infallibility in 1870.
Otto von Bismarck was unifying a new German nation by attacking the Roman Catholic Church as an anti-national force.