Gerrymandering is moving the boundaries of a voting district so that a specific party is favoured.
It is essentially a way of cheating by moving voters from one district to another by moving the lines rather than the actual voters. However, since most parties seem to do it when they are in power, it probably all evens out in the end.