Russia's president will not attend a summit in South Africa next month, according to the country's presidency.
The announcement comes after South Africa's leader said any attempt to arrest Vladimir Putin would be a declaration of war against Russia.
If Mr Putin had left Russian soil, he would have been subject to an International Criminal Court (ICC) arrest warrant.
South Africa is an ICC signatory and is expected to help in Mr Putin's arrest.
Russia's Foreign Minister Sergei Lavrov will represent the country at the two-day summit instead, according to the South African presidency.
In a statement, it described the agreement for Mr Putin not to attend as "mutual" and said it had come about following a "number of consultations" on the summit.
Supporters of Russia have criticised the decision, saying South Africa should have insisted and used its sovereignty to protect and defend its friend.
The gathering of Brics countries - an acronym for Brazil, Russia, India, China and South Africa - in August is seen by some as an alternative to the G7 group of advanced economies.
The decision to invite the Russian leader, who is wanted for war crimes in Ukraine, to South Africa has caused controversy both nationally and internationally.
It was seen as a move by the government to stray from the middle ground it has sought to tread, alongside other African nations, in the conflict between Russia and Ukraine.
But President Cyril Ramaphosa's government became frantic as pressure to arrest President Putin mounted.
The biggest opposition party, Democratic Alliance, went to court to try to force the authorities to carry out an arrest on Mr Putin, should he set foot in the country. Global human rights group Amnesty International was also part of the challenge.
Court documents reveal that Mr Ramaphosa was firmly against any such move, stating that national security was at stake.
"Russia has made it clear that arresting its sitting president would be a declaration of war. It would be inconsistent with our constitution to risk engaging in war with Russia," he said in an affidavit.
Kremlin spokesperson Dmitry Peskov denied Moscow had told South Africa that arresting its president would mean an act of war, but said it was "clear to everyone what [that kind of] infringement against the head of the Russian state would mean".
Russia has consistently described the ICC arrest warrant as outrageous and legally void, because the country is not a member of the organisation.
The African continent remains split over the war between Russia and Ukraine, with some countries showing reluctance to back United Nations' resolutions condemning Russia for its actions in Ukraine.
The reasons for this vary from country to country, but experts say one factor is the economic ties that some, including South Africa, have with Moscow.
A sanctioned Russian oligarch, Viktor Vekselberg, is said to be one of the biggest donors to South Africa's governing party, the African National Congress (ANC).
Latest Stories
-
CAFCC: Dreams FC didn’t lose because of stage fright – Karim Zito
2 mins -
ECG threatens to disconnect Ashanti Regional Minister’s residence if found to be in debt
13 mins -
Gladys Bosco sings about hope in ‘Me Ewurade Bra’
21 mins -
Accra High Court refuses requests to compel Akufo-Addo to receive anti-LGBTQ+ bill
32 mins -
I almost took my life – Fella Makafui
39 mins -
The emergence of the future: Prof. Jane Naana Opoku Agyemang
43 mins -
Knowing when to mute the mic: Kwasi Kwarteng’s choking example on ‘Blue and White’
56 mins -
R. Kelly’s sex abuse conviction in Chicago upheld in appeals court
1 hour -
Azumah Nelson returns to the ring to face EU Ambassador in a match to empower youth
1 hour -
UEFA U-16 Tournament: Black Starlets come from behind to beat Kazakhstan 5-1 in final game
1 hour -
Every worker in Ghana must be concerned about ILO’s report on SSNIT – GNAT President
2 hours -
Amerado falls after stage collapses during performance
2 hours -
Akosombo Dam: JoyNews highlights victims’ harsh living conditions post-spillage
2 hours -
World Safety Day: Zoomlion addresses the impact of climate change on occupational safety
2 hours -
Sean ‘Diddy’ Combs seeks to toss portion of sexual assault civil suit
2 hours