Secret ballots were introduced by law in England in 1872, and most European countries thereafter (they had existed in France since the 1790s). In Germany it became steadily more difficult to apply coercion and intimidation as the ballot became more secret:

