A Maryland judge Friday threw out the Democrat-controlled state legislature's congressional district map on account of "extreme partisan gerrymandering" and ordered it to draw a new one by March 30.  

The scathing opinion, written by Anne Arundel Circuit Court Senior Judge Lynne A. Battaglia, marks a massive victory for two GOP-backed lawsuits against the state's congressional maps. 

The legislature passed that map and overrode a veto from Republican Gov. Larry Hogan late last year. The map got an "F" from the Princeton Gerrymandering Project and has the potential to eliminate Maryland's last Republican congressman. 

The Historic Maryland State House In Annapolis Was Built In 1772. (iStock)

MARYLAND COURT BLOCKS EFFORT BY DEM CAMPAIGN COMMITTEE TO DEFEND GERRYMANDERED CONGRESSIONAL MAP

"The 2021 Congressional Plan in Maryland is an ‘outlier,’ an extreme gerrymander that subordinates constitutional criteria to politician considerations," Battaglia wrote. 

The opinion said that "the right for all votes of political participation in Congressional elections, as protected by Article 7 [of the Maryland Constitution], was violated by the 2021 plan."

"The voice of Republican voters was diluted and their right to vote and be heard with the efficacy of a Democratic voter was diminished," it added. "The 2021 Congressional Plan is unconstitutional, and subverts the will of those governed."

An image of the three Baltimore City congressional districts in the Maryland Legislative Redistricting Advisory Commission's final 2021 proposed map, which was adopted by the Maryland legislature. (Maryland Legislative Redistricting Advisory Committee)

HOYER SAYS DEMS SHOULD GERRYMANDER TO PREVENT ‘UNFAIR COMPETITION,’ SINCE REPUBLICANS DO IT TOO

Battaglia scheduled a hearing for April 1 at 9 a.m. to consider whether a new map drawn by the legislature complies with the Maryland Constitution and Declaration of Rights.

Hogan's group Fair Maps is behind the lawsuit, which was consolidated with a separate one by Tom Fitton's Judicial Watch. 

Hogan set up a commission to propose an alternative map to the one the state legislature adopted. That commission would have set up congressional districts that could have led to two GOP U.S. House members representing the state. 

OBAMA, HOLDER SLAM GOP STATES FOR GERRYMANDERING, BUT SILENT AS DEMOCRATS DO THE SAME THING

The governor lauded the decision as a "historic milestone" for the state Friday. 

Republican Gov. Larry Hogan of Maryland signs the iconic wooden eggs after addressing the Politics and Eggs speaking series at the New Hampshire Institute of Politics at Saint Anselm College, on April 23, 2019 in Goffstown, N.H. (Fox News)

Battaglia ordered the state legislature to redraw the state's congressional maps by March 30. It is possible that the ruling could be appealed to the Maryland Court of Appeals, which is the state's highest court. But that court is made up primarily of justices appointed by Hogan, which gives Hogan allies confidence that Battaglia's ruling will stand. 

CLICK HERE TO GET THE FOX NEWS APP

If the legislature does not come back with a map that's satisfactory to Battaglia or the Court of Appeals, it's not clear exactly what further remedies are available to the Maryland courts. 

In other states that had intractable gerrymandering disputes, courts ended up drawing the congressional districts. That was the case in Pennsylvania just last month amid a dispute between the GOP-controlled legislature and Democrat Gov. Tom Wolf. 

The eventual congressional district lines that are implemented will remain in effect until the next Census in 2030.