Marilyn Mosby, state's attorney of Baltimore/photo by Edward Kimmel via Wikimedia Commons

A federal appeals court has ruled that Baltimore State's Attorney Marilyn Mosby cannot be sued for her comments and actions following the death of Freddie Gray Jr., whose death while in the custody of city police led to public demonstrations, riots and officer prosecutions.

A three-judge panel of the U.S. Court of Appeals for the Fourth Circuit ruled on Monday that Mosby was protected by absolute prosecutorial immunity, even though the officers charged in connection with Gray's death ultimately weren't convicted.

In the ruling, the Richmond, Virginia-based appeals court overturned a decision by U.S. District Judge Marvin Garbis of the District of Maryland, who allowed counts of defamation, malicious prosecution and false-light invasion of privacy to move forward, denying Mosby's motion for dismissal.

“We soundly reject the invitation to cast aside decades of Supreme Court and circuit precedent to narrow the immunity prosecutors enjoy,” wrote Chief Judge Roger Gregory for the court. “And we find no justification for denying Mosby the protection from suit that the Maryland legislature has granted her.”

“A young African-American man had been killed in the custody of the Baltimore City Police Department, and the city was rioting,” Gregory said. “Pursuing justice—i.e., using the legal system to reach a fair and just resolution in Gray's death—was not a political move. It was Mosby's duty,” Gregory added.

Circuit Judges J. Harvie Wilkinson and Pamela Harris joined in the reversal, though Wilkinson did issue a concurring opinion.

Gray, 25, suffered a severe spinal injury while in police custody on April 12, 2015, and died a week later. Six officers involved in his arrest and transport were charged with criminal counts, including manslaughter and second-degree murder. Of the six, one proceeded to a trial that ended in a hung jury, leading to a mistrial, and two others were acquitted by a judge of all charges. Mosby then dropped the remaining cases.

Five of the officers—Lt. Brian Rice and Sgt. Alicia White, and Officers Edward Nero, Garrett Miller and William Porter—filed a civil suit for what they said was a malicious prosecution. Their lawyers claimed Mosby didn't have enough evidence and charged them to ease the unrest in Baltimore that followed Gray's death.

Gray's death led to rioting in the city, and eventually Maryland's governor called in the National Guard and state police to respond.

Following the acquittals of the officers, the U.S. Department of Justice declined to pursue separate civil rights violations charges.

After the appeals court ruling Monday, Mosby issued a statement. “I support the court's opinion that the people of Baltimore elected me to deliver one standard of justice for all, and that using the legal system to reach a fair and just resolution to Gray's death was not a political move, but rather it was my duty.”

The officers were represented by Joseph Mallon Jr. of Mallon & McCool in Baltimore; Reisterstown, Maryland, solo David Ellin; and Baltimore solo Michael Glass. Mallon and Glass did not return telephone calls.

Ellin said, in an email, “We feel confident the Supreme Court will hear this matter and when they do, we'll have at least five justices on our side.”

One of the major accusations against Mosby was that she misused the power of her office in statements she made to the public in the days following Gray's death.

“I will seek justice on your behalf,” she told city residents during a press conference. “[O]ur time is now.”

The police officers said Mosby made those statements in her own personal interest.

The appeals court disagreed with Garbis' ruling that the officers' lawsuit could move forward, and called the officers' arguments “entirely devoid of support.”

There was “no reasonable inference that Mosby acted for reasons other than furthering the operations of the State's Attorney's Office,” Gregory said. “The people of Baltimore elected Mosby to deliver justice.”

He added, “Perhaps to the officers' chagrin, they must accept that they are subject to the same laws as every other defendant who has been prosecuted and acquitted.”

In his concurring opinion, Wilkinson wrote that, if the officers wanted to pursue complaints against Mosby, they should have done so through Maryland's attorney ethics system, and not through “private tort suits.”

“Baltimore's citizens had their faith shaken, not only in the police, but in the very ability to administer justice,” he said. “Mosby responded to a crisis.”