Justin Bieber, left, leaves his lawyers office in Miami on March 6, 2014, after testifying in a civil deposition regarding an alleged assault on a photographer last year. Photo: Luis M. Alvarez

Justin Bieber lost it when a lawyer questioned him about Selena Gomez.

The teen popstar, while under oath, swore, replied with sarcasm, and stormed out when the lawyer probed into the whereabouts of his ex-girlfriend.

Bieber was in a Miami court because of a lawsuit filed against him by a photographer. The snapper claims that Bieber sent his bodyguards to rough him up in June last year. The deposition lasted 4-and-a-half hours.

The photographer’s lawyer quizzed Bieber on a number of subjects, but things got a little heated when the questions related to Gomez.

The lawyer asked if Gomez was present during any incident involving a fight with a photographer. Bieber’s lawyer Howard Weitzman injected, claiming that the questions were intended to bait Bieber.

The lawyer, however, persisted, at which point both Bieber and his lawyer stood up and left. As they were exiting the courtroom, Bieber turned around and screamed: “Don't ask me about her, do not ask me about her!”

Five minutes, later the pair returned, but there was no sign of a ceasefire.

Bieber arrogantly answered a question with a dismissive “Yeah”.

When the lawyer asked if “yeah” meant yes, Bieber responded: “What the f*** is the difference between yeah and yes?!”

A little while later, Bieber added: “What is this, “60 Minutes?”

And then, in response to another question, he said: “OK Katie Couric, what's your question again?” - Tonight Reporter