Which of the items below is the purpose of gerrymandering? Please choose the most correct item.

A: To elect a nominee for each party
B: To dilute the voting power of the opposing party
C: To ensure that each district has an equal population
D: To increase the number of senators from a state

B: To dilute the voting power of the opposing party