Despite the fact that Hödel had been expelled from the Social Democratic Party, his actions were used as a pretext by Bismarck to ban the party. To do this, Bismarck partnered with Ludwig Bamberger, a Liberal, who had written on the subject of Socialism, "If I don't want any chickens, then I must smash the eggs." These attempts on William's life thus became the pretext for the institution of the Anti-Socialist Law, which was introduced by Bismarck's government with the support of a majority in the Reichstag on 18 October 1878, for the purpose of fighting the "socialist" and working-class movement. These laws deprived the Social Democratic Party of Germany of its legal status; prohibited all organizations, workers’ mass organizations and the socialist and workers’ press; decreed confiscation of socialist literature; and subjected Social-Democrats to reprisals. The laws were extended every 2–3 years. Despite the reprisals the Social Democratic Party increased its influence among the masses. Under pressure of the mass working-class movement the laws were repealed on 1 October 1890.