LISTEN TO ARTICLE 1:50 SHARE THIS ARTICLE Share Tweet Post Email

Photographer: Jordi Miro/AFP via Getty Images Photographer: Jordi Miro/AFP via Getty Images

Supporters of Venezuelan opposition leader Juan Guaido left the country’s embassy in Brasilia on Wednesday evening, ending a nearly 13-hour stand-off with diplomats loyal to President Nicolas Maduro.

Freddy Meregote, the embassy’s charge d’affaires representing Maduro’s government, said the “attack” from the “enemies of the revolution” in Venezuela was repelled.” Guaido’s top representative in Brazil, Maria Teresa Alexandrian, said in a statement that the decision to stand down was taken for safety reasons. She added that talks with Brazil‘s government were under way with the aim of ensuring access the embassy as soon as possible.

Police guard an entrance to the Venezuelan embassy in Brasilia, on Nov. 13. Photographer: Jordi Miro/AFP via Getty Images

The confrontation unfolded as leaders including Chinese President Xi Jinping and Russian President Vladimir Putin were in Brasilia for a summit of the world’s largest emerging markets, known as the BRICS. While Russia and China continue to back Maduro, Brazil is the only BRICS member and one of the roughly 50 nations worldwide that recognizes the opposition leader as Venezuela’s rightful head of state. But the Brazilian government has so far refrained from kicking out Maduro’s diplomats.

Guaido’s supporters entered the embassy at around 4:00 a.m. local time. Pro-Maduro diplomats living on site immediately called upon leftist politicians and social movements to rally supporters outside the embassy. Minor skirmishes between the two camps ensued.

During the day, Brazil President Jair Bolsonaro said he “condemned the interference from external actors” at the embassy in a Facebook post that had been reworded after describing the act as an invasion. “We are taking necessary measures to protect public order and avoid acts of violence.”

A representative from Brazil’s Foreign Affairs Ministry spent hours on site, speaking with both sides. It was not clear what was agreed that allowed Maduro diplomats to regain full control of the embassy.

The meeting of the BRICS heads of state is taking place Nov. 13-14 in Brasilia.