Conversation so far:
Why was William McKinley defeated for re-election?
Recognizing McKinley's potential, the Democrats, whenever they controlled the Ohio legislature, sought to gerrymander or redistrict him out of office.

Question: what does that mean?
Self-contained rewrite: What does gerrymandering mean?