The covered up monument is pictured here on the far left.
CNN  — 

As cities and states grapple with the future of Confederate monuments, the Alabama Supreme Court has weighed in on one: Putting plywood around its base violated state law.

The court on Wednesday upheld the state’s protections of the monuments and cited Birmingham for building a black wooden box around the memorial. The city will be hit with a $25,000 fine.

Earlier this year, Jefferson County Circuit Judge Michael Graffeo overturned the Alabama Memorial Preservation Act, saying it violated the free-speech rights of communities.

That 2017 law – directed at local governments – bars the removal, renaming, removal and alteration of monuments, memorial streets, memorial buildings and architecturally significant buildings located on public property for 40 or more years.

Alabama Attorney General Steve Marshall had sued Birmingham for covering up the inscription on the base of the 52-foot monument from 1905 that honors Confederate veterans. Then-Mayor William Bell made the decision to have side panels at the Linn Park memorial covered while options to remove it were being considered. The top portion of the monument was left visible.

The circuit court said the state law violated the majority black city’s Fourteenth Amendment rights, setting up the appeal before the state Supreme Court.

The high court heard arguments on whether the plywood screen “altered” or “otherwise disturbed” the monument. In its 9-0 ruling, the justices said that it did by obstructing the view.

As to Birmingham’s argument that it has a right to free speech, the court ruled “the city cannot assert any substantive constitutional rights against its creator state.”

Attorney General Marshall welcomed Wednesday’s ruling, saying it is “a victory for the Alabama law, which seeks to protect historical monuments.”

Rick Journey, a spokesman for the city, said: “This ruling appears to be less about the rule of law and more about politics. We are carefully reviewing the opinion to determine our next step, but clearly the citizens of Birmingham should have the final decision about what happens with monuments on Birmingham city grounds.”

CNN’s Tina Burnside and Phil Gast contributed to this report.