Baltimore City State's Attorney Marilyn Mosby, who made headlines when she filed charges against six police officers following the death of Freddie Gray, appeared on an episode of "Judge Judy" in 2000.

The then 20-year-old Mosby, who went by Marilyn James at the time, brought her neighbor Ryan Johnson to Judge Judy's small claims court and won nearly $2,000.

The college student said she left her apartment for three months over summer break to return to find her door had been broken down and her apartment trashed. She brought photos as evidence and told the Judge "Basically, my apartment was a wreck."

The neighbor claimed that someone had broken into the building and he didn't know what had happened to the apartment.

But Mosby revealed that Johnson's wife was pregnant at the time and said she found "baby decorations" and other evidence of a baby shower at the apartment.

“You think a burglar would make a baby shower?” Judge Judy asked Johnson. "Mr. Johnson, what you did to this young woman was wrong,” she said. “You figured she is a college student, she has no way of fighting back, she has nothing else to do … You took advantage of her."

A relieved Mosby concluded, “Finally, Judge Judy, she finally gave me justice."

A Mosby spokesman confirmed she appeared on the show when she was an undergraduate at Tuskegee University in Alabama.