A Brazilian judge has temporarily suspended provisions making it easier to buy guns implemented by President Jair Bolsonaro citing a risk of "political violence" leading up to the country’s presidential election.

"The start of the election campaign exacerbates the risk of political violence," which "makes the need to restrict access to weapons and ammunition extremely and exceptionally urgent," Brazilian Supreme Court Justice Edson Fachin ruled this week, according to France 24.

Fachin’s decision means that only "people who concretely demonstrate an effective need" will be able to possess weapons. This move comes after Bolsonaro issued more than a dozen decrees loosening restrictions on gun ownership since taking office in 2019.

Fachin also ruled that some firearms will only be allowed for reasons of "public security or national defense" as opposed to "personal interest," which included hunting, sport shooting, and collecting.

BOLSONARO TOUTS THE WORLD'S DEPENDANCE ON BRAZIL FOR 'ITS VERY SURVIVAL, HAS SOLUTION' TO GLOBAL CRISES

Brazilian Supreme Court Judge Edson Fachin in a suit during a court session

Brazilian Supreme Court judge Edson Fachin is pictured during a session to rule on whether former president Luiz Inacio Lula da Silva should start a 12-year prison sentence for corruption (VICTORIA SILVA/AFP via Getty Images)

Fachin explained that he made the decision "in light of recent and unfortunate episodes of political violence."

The conservative Bolsonaro is set to square off against his liberal opponent, former President Luiz Inácio Lula da Silva, in a contentious election that some fear will lead to violence.

BRAZIL PRESIDENT RIPS LEONARDO DICAPRIO OVER AMAZON DEFORESTATION TWEET: 'GIVE UP YOUR YACHT BEFORE LECTURING'

Brazilian President Jair Bolsonaro speaks during press conference wearing black suit

President Jair Bolsonaro speaks during a press conference on International Day Against Corruption at Planalto Palace on December 9, 2021 in Brasilia, Brazil.  (Andressa Anholete/Getty Images)

Lula has already taken to wearing a bulletproof vest for public appearances and Bolsonaro, also wearing a bulletproof vest, recently revisited the spot in the city of Juiz de Fora where he was stabbed by a mentally ill man on the campaign trail in 2018.

The ruling in Brazil comes the same week Argentina's Vice President Cristina Fernández escaped an assassination attempt when a man pointed a gun at her head and pulled the trigger at point-blank range and the gun misfired, leaving her unharmed.

CLICK HERE TO GET THE FOX NEWS APP

Brazilian presidential candidate Luiz Inacio Lula da Silva speaks to crowd wearing blue shirt

Brazilian presidential candidate for the leftist Workers Paty (PT) and former President (2003-2010), Luiz Inacio Lula da Silva, speaks during an election rally in Manaus, Brazil, on August 31, 2022 (hoto by MICHAEL DANTAS/AFP via Getty Images)

Reuters reported this week that recent polling shows Lula leading Bolsonaro by 10 points, down from a 12-point lead a week ago.

The Associated Press contributed to this report.