A U.S. District Court judge dismissed the trial with prejudice against Cliven Bundy, sons Ryan and Ammon Bundy and Montana militia leader Ryan Payne Monday morning.

Judge Gloria Navarro had declared a mistrial last month and severely criticized prosecutors for what she called “willful” violations of due process rights of defendants, including failing to properly turn over evidence to their lawyers.

The four were on trial for an armed uprising against federal authorities in 2014.

This move means the defendants can not be retried.

Cliven Bundy walked out of the federal courthouse after being held for nearly two years.

Navarro called the government’s conduct “outrageous” and said the government failed to produce evidence about the existence of surveillance cameras, snipers, and  threat assessments.