Maryland lawmakers voted 37-8 Thursday to remove references to “Northern scum” and the Confederacy from the official state song, according to the Associated Press.

“Maryland, My Maryland” will remain the state’s historic anthem but be stripped of controversial lyrics, the AP reported.

The song, written by former Confederate Navy man James Ryder Randall, is a battle cry that calls for the people of the state to rise up against the forces of “despot” President Abraham Lincoln and secede from the Union.

“Dear Mother!” the lyrics read. “Burst the tyrant’s chain.”

Maryland was a slave state that was deeply divided during the Civil War, but ultimately decided against secession.

“Maryland, Oh Maryland,” which is sung to the tune of “O Tannenbaum,” wasn’t adopted as the state song until 1939, although it was penned in 1861. The AP reports it is unclear why the song was adopted at that particular historical moment but notes there had been two recent lynchings in the state and the NAACP was then advocating for equal pay for black teachers.

“By enshrining a Confederate war anthem, the General Assembly may have been seeking symbolically to challenge such efforts,” according to the AP.

State Senate President Thomas V. Mike Miller (D) applauded the changes in an interview with the news service.

“This bill is an excellent compromise to move forward, so that our children and our children’s children and so that all Maryland can be proud of our state song,” he said.

Other senators were less enthused. Sen. Robert Cassilly (R) told the AP that the lyric edits were a rebuke to the state’s history.

“Our song doesn’t belong to the Confederacy. It belongs to us,” said Sen. Robert Cassilly (R), who voted against the changes.

“The idea that we’re trying to excise our history is just, I don’t think that’s America,” Cassilly continued. “That’s not what we’re about.”

Maryland has made other recent efforts to break from Confederate history, ruling last October to phase out the sale of license plates featuring Confederate battle flags.

Read the full lyrics for “Maryland, My Maryland,” courtesy of the state government’s website: