Two New Mexico judges dismissed charges Wednesday against the defendants arrested at the remote compound where 11 children were found living in filth and the body of a 3-year-old boy was discovered. (Brian Skoloff/AP)

Two judges dismissed charges Wednesday against the defendants in the New Mexico compound case that has drawn headlines for weeks for its lurid and racially charged details, in a major blow to the prosecution.

Judge Emilio Chavez said that he had no choice but to release the three defendants, Lucas Morton, Hujrah Wahhaj and Subhannah A. Wahhaj, because the office of District Attorney Donald Gallegos failed to schedule a court hearing to prove they had probable cause for their arrest within 10 days, as state rules stipulate, according to court representatives and defense lawyers. Another judge later ordered the dropping of charges against the other two defendants, Siraj Wahhaj and Jany Leveille, according to Ryan Laughlin, a reporter for the local television station KOB, but the status of their potential release is less clear as they were immediately charged again with more severe offenses: child abuse resulting in death.

“For whatever reason, the state did not obtain a preliminary hearing date within 10 days,” Aleksander Kostich, a public defender representing Morton, told The Washington Post. “It’s absolutely bizarre.”

“I wish they had an explanation,” Megan Mitsunaga, who represents Subhannah Wahhaj, told The Post. “They provided none to us or the court. I would have thought they’d be more on top of things, the way they continued to seek to hold them without bond.”

The developments were the latest twist in the tense case, which has drawn wide attention since the ramshackle rural plot in Amalia, which consisted of a trailer dug into the ground and surrounded by old tires and an underground tunnel, was raided on Aug. 3. The combination of its lurid details — law enforcement officials said they found 11 children, as well as the body of Siraj Wahhaj’s 3-year-old son, Abdul-Ghani — and the accusations made in court by prosecutors but cautioned against by a judge, that the defendants were Muslim extremists engaged in a terrorist training camp of sorts, brought the case to wide national prominence.

Gallegos’s office did not a respond to a request for comment.

Siraj Wahhaj and Jany Leveille pleaded not guilty to new charges, according to the Associated Press. The outlet reported that prosecutors said they found a handwritten document called “Phases of a Terrorist Attack” at the compound. In other filings, prosecutors alleged that children had told them that some of the adults at the compound had talked about dying in jihad.

But for weeks there have been signs that the case was not going as officials had hoped. The defendants were all charged with 11 counts of felony child abuse but nothing terrorism-related, and the guns found at the compound were legally possessed, a judge said. And that judge, Sarah Backus, also ordered them to be given a limited release against the wishes of prosecutors after she found the evidence that they were a danger to the community to be thin.

Kostich and Mitsunaga said that prosecutors from Gallegos’s office did not offer a clear reason for failing to schedule the preliminary hearing, as required, within the 10-business-day window, which began after the defendants' first court appearance, on Aug. 8. That window expired on Aug. 22, Judge Chavez noted in his ruling.

Prosecutors will have the option of trying the former defendants by securing a grand jury indictment against them, Kostich said.

“The judge’s hands were tied because the rules are very clear,” Kostich said. “This is not the end of things; they will most likely try to recharge him through the use of a grand jury proceeding.”

It is possible that the case was complicated by ambiguities around the defendants' custody. While Backus ordered all five suspects to be released to house arrest and with other strict conditions including GPS monitoring, they all remained in custody because they were not able to meet the requirements.

Siraj Wahhaj was at one point subject to an extradition to Georgia, where a warrant had been issued for his arrest on the suspicion that he abducted his son, Abdul-Ghani. Leveille, who is from Haiti, had been held by immigration officials. According to Laughlin, both were immediately charged a second time by the sheriff’s office after the judge dismissed their charges, but the judge questioned the legitimacy of the new charges and set another hearing for Tuesday.

He also excoriated the district attorney’s office.

“Judge McElroy is hammering the DA office,” Laughlin reported. “He says he doesn’t know if the office is overworked or what, but he finds it disturbing the state didn’t play by the rules. Notes the DA is not present here.”

The case has become a target of conspiracy theories and anger in far-right circles, in part because of its unproven connections to terrorism. Backus, who said she was bound by judicial ethics to order that the defendants be given a limited release, was the target of a sustained harassment campaign that prompted security officials to lock down the courthouse for an afternoon after she received death threats. Court officials said they had never seen such a voluminous and vitriolic response to a court ruling. On Wednesday, some far-right conspiracy theorists began spreading baseless theories about why the prosecution had let the case lapse.

Read more:

Judge’s move to grant bail in New Mexico compound case draws a Twitter mob — and death threats

Her daughter was killed in the Parkland shooting. She just won a seat on the county school board.

Pennsylvania prisons are locked down after ‘unknown substances’ leave 29 hospitalized