Some things, like her marriage, are no laughing matter for Mel B.

The America's Got Talent judge made that clear on Tuesday's live episode.

After illusionist Demian Aditya completed an act he calls "the death drop," with technical difficulty, host Tyra Banks explained the issue was not the magician's fault and asked for the judges' opinions. This is where things grew tense, thanks to Simon Cowell.

"Well, I kind of imagine this would be like Mel B's wedding night, a lot of..." Cowell said, before the crowd erupted in audible shock and the former Spice Girl unscrewed her Dunkin Donuts cup and hurled its contents at him.

Mel B filed for divorce from her estranged husband Stephen Belafonte in March, whom she wed in July of 2007. In April, she filed for and was granted a restraining order against Belafonte, alleging years of abuse.

Cowell, continuing his thought, said, "a lot of anticipation, not much promise or delivery."

"Mel B is out," Banks said, narrating the situation as Scary Spice made her exit.

The NBC show tweeted that she "left the building," though she returned to judge the next act.

After the incident, she briefly summarized it for The Associated Press: "(Cowell) just said something annoying so I threw water on him, simple as that."

Explaining her exit she said, "(I'm not gonna) sit there and listen to what else he's got to say. Even though he's my boss, I'm the boss."

More:Deaf singer Mandy Harvey amazes with beautiful original song on 'America's Got Talent'

More:'America's Got Talent': Singing ventriloquist Darci Lynne amazes again