"Paris Hilton was questioned today by police in South Africa on allegations of smoking marijuana," a publicist for Hilton, Dawn Miller, said in a statement.
"However I can confirm that the incident was a complete misunderstanding and it was actually another person in the group who did it," the statement said. "The case has been dropped against Paris and no charges will be made."
When told the case had been dropped, Hilton said "thank you" and left the courtroom.
Hilton wrote on Twitter later: "Everything is fine guys. I had nothing to do with it."
Hilton is no stranger to trouble with the law. She pleaded no contest in 2007 to alcohol-related reckless driving and spent about 23 days in jail. Hilton called it a traumatic experience, in part, because she claimed she suffered from claustrophobia.
The Associated Press contributed to this report.