James Buchanan, a Democrat, is almost universally regarded as the worst president in American history.
Buchanan supported the miscarriage of justice that was the Dred Scott decision and proceeded to do nothing to keep southern states from succeeding.