Red-baiting was employed in opposition to anarchists in the United States as early as the late 1870s when businessmen, religious leaders, politicians and editorial writers tried to rally poor and middle-class workers to oppose dissident railroad workers and again during the Haymarket affair in the mid-1880s. Red-baiting was well established in the United States during the decade before World War I. In the post-war period of 1919–1921, the United States government employed it as a central tactic in dealing with labor radicals, anarchists, communists, socialists and foreign agents. These actions in reaction to the First Red Scare and the concurrent Red Terror served as part of the organizing principle shaping counter-revolutionary policies and serving to institutionalize anti-communism as a force in American politics.