The "Compromise of 1877" is best characterized by response D: "Southern Democrats wanted federal troops withdrawn from the South and voting rights of the freedmen decided by state governments."
This compromise effectively resolved the disputed 1876 presidential election between Rutherford B. Hayes and Samuel J. Tilden, leading to Hayes's presidency in exchange for the withdrawal of federal troops from the South, which marked the end of Reconstruction and allowed Southern states to control their own voting processes, often to the detriment of African American voters.