Violent protests are common in South Africa, but North West province has been a hotbed of unrest due to boiling frustration over lack of housing, health services and jobs.
By Thursday, Mahikeng was locked down, shops were looted and vehicles torched.
"To pay attention to the situation in the North West, the president has made a decision to cut short his participation in the Commonwealth Heads of Government Meeting in London where he is leading a government delegation", a statement said.
The South African Military Heath Service (SAMHS) have been deployed to the North West to reinforce the medical care capacity at the Provincial Health Hospital.
The President was scheduled to hold meetings with ANC leaders in the provincial capital Mahikeng on Friday, the BBC report quoted his office as saying.
Local residents took to the streets in parts of the province earlier this week, demanding that North West premier Supra Mahumapelo step down because his son allegedly got a one-million-rand (about 84,000-U.S. -dollar) bursary from state-owned arms manufacturer Denel whereas local students were struggling to get funding for tertiary education.
Ramaphosa, who took power in February, expressed "serious concern" over the clashes between police and protesters, and called for calm as he faced one of the first major challenges of his presidency.
Nine people have been arrested since Wednesday, South Africa's Timeslive reported citing police spokesperson Adele Myburgh.
Botswana's government said on Thursday it had closed exit points to South Africa's North West province, where the two countries share a border.
Mahumapelo's office has denounced the protests as an attempt to discredit him.
Growth had been weak and unemployment painfully high as Zuma's leadership was dogged by years of corruption allegations.
Speaking at a press briefing on Friday night after a series of meetings in the North West capital‚ Ramaphosa said that he was determined to make the right call based on all evidence available.