Sacramento mayor Kevin Johnson was allegedly hit with a pie at Sacramento High School's Farm-To-Fork Seeds of Hope dinner on Wednesday night.
Police have identified the alleged pie thrower as 32-year-old Sean Thompson.
UFC fighter Urijah Faber, who attended the dinner, said Johnson fought back against his attacker.
Faber said he walked up at the tail end of the incident when Johnson was being helped up.
“There was another guy that was being detained who was all dirty, dressed kind of raggedy, and bloodied up at this point who was being held for the cops to come and grab him,” said Faber.
Faber said Johnson told him what happened in the moments before.
“I asked him (Johnson) what happened and apparently the guy had come from behind and just slammed him in the face, sounds like half punch, half pie slamming in the face and then they got into a scuffle and started rolling around on the ground and looks like that guy got the worst of it,” said Faber.
Police said Thompson received minor injuries. He was arrested on felony charges of assaulting a public official.
Johnson was not injured.
Copyright 2016 KXTV