The modern welfare state began with a chancellor trying to outflank socialists
In 1889, Otto von Bismarck's Germany introduced the world's first state old-age pension, insuring workers against poverty in old age or disability. Bismarck's goal wasn't generosity for its own sake — it was partly a calculated move to make state socialism less appealing by having the state provide the same security itself.