Brazil’s Supreme Court on Tuesday ordered the conditional release of 137 people accused of participating in a violent anti-government attack last month, AFP reports.

Protests in BrazilPhoto: Eraldo Peres/AP/Profimedia

Suspects involved in attacks on several key Brazilian buildings will be forced to wear electronic bracelets, have their passports revoked and be banned from using social media, carrying firearms or leaving their homes at night and on weekends.

A court statement said Judge Alexandre de Moraes authorized the release because “investigations have shown that they were neither the financiers nor the main actors” of the Jan. 8 attacks on the capital’s headquarters.

The judge also took into account the fact that most of the released “do not have criminal records and have small children.”

More than 800 people arrested after the riots remain in custody, and just over 600 have been granted conditional release, the court said.

On January 8, thousands of supporters of former President Jair Bolsonaro attacked the presidential palace, the Supreme Court and Congress.

They managed to easily break through the encirclement around the buildings and cause enormous damage, including priceless works of art.

Since then, Brazilian President Luiz Inacio Lula da Silva has fired more than 50 soldiers from his security apparatus.

The demonstrators refused to recognize the narrow victory of the leftist Lula over the far-right Bolsonaro in the elections last October.

The riots in Brazil were reminiscent of the violence at the US Capitol by supporters of Donald Trump in Washington two years earlier, when the Republican was ousted by Democrat Joe Biden.