RICHMOND — Protesters late Wednesday toppled an iconic statue of Jefferson Davis, president of the Confederacy, about a half-mile down Monument Avenue from the statue of Gen. Robert E. Lee that Gov. Ralph Northam is fighting to remove.

The Davis statue had stood since 1907. Around 10:30 p.m., a group of protesters pulled it down from its pedestal.

Police surrounded the statue a short time later. Ropes were still attached to the separated base. A small crowd looked on, laughing but subdued.

“Keep people waiting long enough and something like this is bound to happen,” said a 24-year-old man who would only give his name as Thomas, and who said he had ridden over on his bike after word spread on social media.

One person said a small group with tools and ropes had brought the statue down using a car. When a tow truck arrived and workers began sizing up how to remove the figure from the street, the crowd began a short chant of “na na na na, hey hey, goodbye.”

But not everyone was cheerful.

Marcus, 34, who like the others declined to give his last name, said he had grown up seeing the statues and as an African American had hoped they would come down.

“But not like this,” he said. “It would’ve been nice to see this stuff come down without having to protest for it. You shouldn’t have to kill someone and get a riot behind it to have some action.”

Around 11:45 p.m., the crowd erupted in cheers and applause when the disfigured statue was hauled up onto a tow truck and carted away.

Earlier Wednesday, state Attorney General Mark R. Herring (D) served notice to a circuit court judge that he will defend the effort to remove the towering statue of Lee. Herring also complained that a temporary injunction against the removal was issued without informing his office.

“The Governor has both the authority and the moral obligation to remove this badge of white supremacy from its place of exaltation, and [Herring] intends to defend the Governor’s decision and ensure the removal of this divisive relic,” the attorney general’s office wrote in a court filing Wednesday afternoon.

Northam (D) said last week that he would take down the statue, partly in response to daily demonstrations against police mistreatment of African Americans.

On Monday, after state workers had begun surveying the statue for removal, Richmond Circuit Judge Bradley B. Cavedo granted a temporary injunction sought by William C. Gregory, who contends in a lawsuit that the state promised to “affectionately protect” the statue when it annexed the land it stands on from Henrico County. The suit identifies Gregory as a great-grandson of a couple who were signatories to the deed.

State lawyers said they were not informed of the hearing on the injunction, which halts any effort to remove the statue for 10 days. While a notice was not required, Herring’s office said it is almost always given a heads up in such circumstances.

“Defendants were not even aware of this suit until after an ex parte order had been issued, and Plaintiffs did not provide formal notice of the complaint and temporary injunction order until … both had been released to the media,” Deputy Attorney General Samuel Towell wrote in Wednesday’s filing on behalf of Herring and other lawyers in the office.

The filing points out that the court issuing the injunction is only two blocks from the attorney general’s office. Gregory’s attorneys have declined to comment on the case or the way it was handled.

Towell asked for a transcript and any filings from the Monday hearing at which the judge granted the temporary injunction.

Northam vowed Tuesday to fight the injunction and the underlying lawsuit all the way to the state Supreme Court if necessary.

The statue is on state property that was annexed from Henrico in 1890. In the deed recording the land transfer, the state “guaranteed” to “hold said statue and pedestal and circle of ground perpetually sacred to the monumental purpose” and to “faithfully guard it and affectionately protect it,” Gregory’s lawyer, Joseph E. Blackburn Jr., argued in a court filing Monday.

“His family has taken pride for 130 years in this statue resting upon land belonging to his family and transferred to the Commonwealth in consideration of the Commonwealth contractually guaranteeing to perpetually care for and protect the Lee Monument,” the suit states.

But Herring and his lawyers argued Wednesday that “the statue is a daily reminder of one of the darkest periods in our Commonwealth’s and Nation’s history. The statue does not seek to explain or seek reconciliation for that time; it seeks to glorify it. It is a piece of state property freighted with exclusionary meaning to broad swaths of Virginians.”

Laura Vozzella and John McDonnell contributed to this report.