Brazil will not close its border with Venezuela despite tensions that led to attacks on migrants, an official has said.

Institutional Security Minister General Sergio Etchegoyen told a news conference that closing the border would be illegal and would not help ease the situation in the border town of Pacaraima in the northern state of Roraima.

Residents of Pacaraima attacked Venezuelan immigrants on Saturday after a local store owner was robbed, stabbed and beaten in an assault the Brazilians blamed on four immigrants.

The owner — 55-year-old Raimundo Nonato de Oliveira — was discharged from hospital on Sunday.

“The closing of the border is unthinkable because it is illegal,” Mr Etchegoyen said.

Ecuador Venezuela Migration Crisis
Tens of thousand of Venezuelans have fled across the border (Dolores Ochoa/AP)

Political and economic turmoil has driven tens of thousands of Venezuelans across the border, straining the capacity of small towns in the area to cope.

About 510,000 Brazilians live in Roraima and 12,000 of those are in Pacaraima, a city that has received five times its population in Venezuelan migrants.

Roraima state governor Suely Campos has pressured Brazil’s federal government and judicial authorities to close the border with Venezuela or send enough help.

On Sunday, Ms Campos requested that Brazil’s top court temporarily suspend the immigration of Venezuelans into Brazil. There is no date for a court decision on the case, but a similar request was denied in April.

“Unfortunately it took a violent episode for the federal government to understand it needs to face this issue in an effective way,” Ms Campos said in a statement on Monday.

She is asking national officials for 45 million dollars to compensate for spending by Roraima state since 2016, when the migration began to reach crisis proportions.

The governor also wants Brazil’s top court to establish an “immigrant quota” for each state so they can leave impoverished Roraima.

Roraima’s Attorney-General Ernani Batista said that only 820 Venezuelan immigrants have been sent to other states since April.

“We cannot host 500 to 800 Venezuelans coming a day,” Mr Batista said. “Our main point with this request (to the court) is to send Venezuelans to other states and regions in Brazil.”

Ms Campos and several other local politicians who have called for the border to be closed are running for re-election.

Camila Asano, a director at Sao Paulo-based human rights organisation Conectas, said the campaign trail rhetoric is one of the reasons for Saturday’s violence.

“Federal and local authorities don’t know what to do and are feeding this conflict with populist suggestions to close the border and establish quotas,” Ms Asano told The Associated Press.

“Sending Venezuelans to other states doesn’t solve the whole problem because many will stay in Roraima anyway because they are closer to the border, to their families.”

Ecuador Venezuela Migration Crisis
Venezuelans without passports wait at the Rumichaca International Bridge that connects Colombia and Ecuador (Dolores Ochoa/AP)

In a document filed to Roraima authorities, Ms Campos said there is risk of “bloodshed” in Pacaraima and said “the chaos is a result of the omission of the federal government”.

Mr Etchegoyen, however, said closing the border “wouldn’t help with the humanitarian situation in any way”.

The minister said the situation in Pacaraima has calmed since Saturday, but no arrests have been made yet.

Brazil’s federal government is sending 120 military-style police to Roraima. Half of that contingent has arrived in Boa Vista, but the other half has no date of arrival set.

Ms Campos has asked for federal help since 2016, shortly after President Michel Temer took office due to the impeachment of his predecessor Dilma Rousseff.

A document obtained by The Associated Press shows Ms Campos requested assistance from then federal police boss Leandro Daiello for the first time on July 6 of that year.

“Because of the aggravation of the crisis in Venezuela, crime has risen in Pacaraima and in (Roraima’s capital) Boa Vista, committed chiefly by Venezuelan citizens,” the letter said.

“I request emergency measures for a rigorous control of the entry of foreigners in the border area.”

Other requests followed, but no meaningful steps were made, local authorities said.