A South African court has granted an order to prevent Sudanese President Omar al-Bashir from leaving country until ruling is given on an arrest warrant issued by the International Criminal Court (ICC).
The ICC had urged South Africa to arrest President Bashir over war crimes, during his visit to South Africa for the African Union (AU) summit, BBC has reported.
A statement came from the ICC accusing South Africa of not sparing effort to detain the Sudanese president who is wanted for war crimes over the conflict in Darfur.
South African officials welcomed Bashir and other Sudanese officials on their arrival in Johannesburg, according to SABC news.
The Sudanese news agency, Suna, also reported that Sudanese officials were welcomed with a friendly reception by South African officials.
The tensions between ICC and South Africa started after South Africa blamed the ICC for being biased against African leaders.
The African Union had previously warned the ICC to stop proceedings against elected leaders who sit as the Presidents of African nations.
Although Bashir is restricted to travel overseas because of sanctions set forth by the ICC, the Sudanese president still visits friendly states in Africa and the Middle East.
The ICC holds no police force within itself and uses the forces of its members to carry out arrests.
The President of the assembly of states to the ICC, Sidiki Kaba, stated that there would be negative consequences for the court if South Africa refused to implement its obligations.
The main opposition and human rights organisations in South Africa have also called on the government to arrest Sudanese President.
There has been a conflict in Darfur since 2003 when rebel groups deposed the government and captured it.
300,000 people died, mostly from diseases according to UN reports.
The ICC has investigated the region and accused Bashir of war crimes and genocide.