to arrange or divide a district or to manipulate its boundaries in a way that gives one class/group or political party an unfair advantage, especially in context of electoral results;
e.g. The members of the party tried to gerrymander the state so that they would win the election.
(verb)
to achieve something, especially one's favored result, by manipulating the boundaries of various regions/districts;
e.g. They tried to gerrymander a victory in the election.