The civil rights movement was a social movement in the United States from 1954 to 1968 which aimed to abolish legalized racial segregation, discrimination, and disenfranchisement in the country, which most commonly affected African Americans. The movement had origins in the Reconstruction era in the late 19th century, and modern roots in the 1940s. After years of nonviolent protests and civil disobedience campaigns, the civil rights movement achieved many of its legislative goals in the 1960s, during which it secured new protections in federal law for the civil rights of all Americans, including the Civil Rights Act of 1964 and the Voting Rights Act of 1965.
Following the American Civil War (1861–1865), the three Reconstruction Amendments to the U.S. Constitution abolished slavery and granted citizenship to all African Americans, the majority of whom had recently been enslaved in the southern states. During Reconstruction, African-American men in the South voted and held political office, but after 1877 they were increasingly deprived of civil rights under racist Jim Crow laws (which for example banned interracial marriage, introduced literacy tests for voters, and segregated schools) and were subjected to violence from white supremacists during the nadir of American race relations. African Americans who moved to the North in order to improve their prospects in the Great Migration also faced barriers in employment and housing. Legal racial discrimination was upheld by the Supreme Court in its 1896 decision in Plessy v. Ferguson, which established the doctrine of "separate but equal". The movement for civil rights, led by figures such as W. E. B. Du Bois and Booker T. Washington, achieved few gains until after World War II. In 1948, President Harry S. Truman issued an executive order abolishing discrimination in the armed forces.