South African President Cyril Ramaphosa tested positive for COVID-19 on Sunday and is receiving treatment for mild symptoms, the presidency said in a statement.
Mr Ramaphosa, who is fully vaccinated, began feeling unwell after leaving a state memorial service for former deputy president F W de Klerk in Cape Town earlier in the day but was in good spirits and being monitored by doctors, it said.
The highly mutated Omicron variant was first detected in South Africa last month and sparked global panic over fears that it is more contagious than other variants.
Mr Ramaphosa would remain in self-isolation in Cape Town for the time being and had delegated all responsibilities to Deputy President David Mabuza for the next week.
On a recent visit to four West African states, the president and the entire South African delegation were tested for COVID-19 in all countries, the statement said.
"The president and the delegation returned to South Africa from the Republic of Senegal on Wednesday, 8 December 2021, after obtaining negative test results.
"The president also tested negative on his return to Johannesburg on 8 December."
The statement quoted Mr Ramaphosa as saying that his own infection served as a warning to all citizens of the importance of getting vaccinated and remaining vigilant against exposure.
"Vaccination remains the best protection against severe illness and hospitalisation," the statement said.
"People who have had contact with the president today are advised to watch for symptoms or to have themselves tested," it added.
Despite cases of Omicron being found in countries worldwide, it has not yet become fully clear if it causes more severe illness or if, or to what it extent, it can evade vaccines.
In a tentative judgement, the EU Medicines Agency said on Thursday that Omicron may cause milder disease after the World Health Organization (WHO) said earlier in the week that there was some evidence that Omicron causes less severe disease than Delta, the currently dominant variant.
More vaccinations urged
Cases of coronavirus in Africa nearly doubled over a week as Omicron spread, but hospitalisations in South Africa remain low, the UN added on Thursday.
In a weekly online press briefing, the WHO's Africa branch said the continent had recorded 107,000 extra cases in the week to last Sunday, compared with 55,000 in the previous week.
Omicron "is reaching more countries in Africa", it said, adding that research was being stepped up to see whether the new variant was specifically behind the sharp rise.
The biggest surge in numbers — 140 percent on average — was in the south of the continent.The agency reiterated its objections to travel restrictions, which it said had been issued by more than 70 countries and were overwhelmingly aimed at southern Africa, even though countries in the region had been "transparent with their data".
South African President Cyril Ramaphosa urged citizens to get vaccinated against COVID-19 after he contracted the virus. Source: Getty Images
It also called on countries to step up vaccinations — only 7.8 percent of the continent's roughly 1.2 billion people have been jabbed.
The biggest laggards in immunisation are Chad, Djibouti and Democratic Republic of Congo.
A new vaccine supply system is being set in place to help African countries distribute them more easily.