South African Herschelle Gibbs has been banned for two Tests for making derogatory comments about Pakistanis during Sunday's play in the first Test.
Match referee Chris Broad announced the punishment to reporters on Monday after a hearing which followed South Africa's seven-wicket win.
International Cricket Council chief executive Malcolm Speed laid the charge under the governing body's code of conduct after racist and abusive remarks were picked up on a stump microphone at Centurion.
"Gibbs has been charged under Level 3.3 of the Code which prohibits using...'any language or gestures that offends, insults, humiliates, intimidates, threatens, disparages or vilifies another person on the basis of that person's race, religion, colour, descent or national or ethnic origin'," an ICC statement said.
Cricket South Africa earlier released a statement saying Gibbs would appear at a separate, internal disciplinary hearing.
"CSA has investigated the matter, and we have heard the remarks made by Herschelle Gibbs in response to verbal abuse directed by a number of Pakistan supporters at Paul Harris while he was fielding on the boundary," the statement quoted CSA chief executive Gerald Majola as saying.
"Herschelle says these remarks were for the ears only of his team mates in his proximity, and were directed in general terms at that section of the crowd that had verbally abused Paul Harris," Majola added.
"He has apologised if he has caused offence to anyone."
SIX MONTHS
Two spectators agreed to leave the stadium on Sunday after they admitted swearing at left-arm spinner Harris.
The second Test against Pakistan starts in Port Elizabeth on Friday.
Gibbs has faced disciplinary action before.
The opening batsman was fined and suspended for six months by the South African board after admitting he agreed to under-perform in a one-day international in exchange for money on the 2000 tour to India.
The offer was relayed to him by late South Africa skipper Hansie Cronje, who was subsequently banned from cricket for life.
Gibbs returned to India in October after a six-year self-imposed absence sparked by fears he would be detained by Indian authorities for his role in the match-fixing scandal.
(Additional reporting by Mark Meadows in London)
Have cricket fans become abusive?
'Zaheer, Sreesanth, Munaf, Irfan for WC