Answer:
Elbridge Gerry, who was the governor of Massachusetts in 1812, redrew the state's congressional districts in a way that benefited his own party, the Democratic-Republican Party. The redistricting was done in a manner that created a district that was shaped like a salamander, which earned it the nickname "gerrymander."
The redistricting was done in order to give the Democratic-Republicans an advantage in the upcoming elections by creating a district that would ensure the party's victory in a majority of the state's districts.
This practice of manipulating district boundaries for political gain is now known as gerrymandering and it is still a controversial issue today. The Supreme court of the United States have been dealing with the cases of gerrymandering and have made some rules which could be used to measure if the gerrymandering is constitutional or not.