Undermining refers to the process of weakening or eroding the foundations or effectiveness of something. In the context of the failure of Reconstruction, it illustrates how various forces and groups worked against the progress made towards racial equality and civil rights for African Americans after the Civil War, ultimately leading to a regression in those hard-won gains.