(CNN) A state court in North Carolina unanimously struck down Republican-led efforts to maintain state legislative districts on Tuesday, holding that they amount to unconstitutional partisan gerrymanders that violate the state's Constitution.

The court held that state House and Senate maps enacted in 2017 are "significantly tainted in that they unconstitutionally deprive every citizen of the right to elections for members of the General Assembly conducted freely and honestly to ascertain, fairly and truthfully, the will of the People," according to the opinion.

The General Assembly had a "partisan intent to create legislative districts that perpetuated a Republican-controlled General Assembly," the court found, meaning that "in all but the most unusual election scenarios, the Republican party will control a majority of both chambers of the General Assembly."

The court also required that new district maps be drawn for the 2020 election, with certain specific considerations taken into account.

The battle in North Carolina demonstrated how the fight over partisan gerrymandering is shifting from the federal courts to the state level.

Read More