Rapper Chris Brown was arrested in Los Angeles on suspicion of assault with a deadly weapon, police said, following an hours-long standoff after a woman alleged he pointed a gun at her.
Police said Brown, who voiced support for the Black Lives Matter movement against police brutality, was being transported to a police station to be booked on the assault charge.
The Los Angeles Police Department earlier said that officers from the homicide and robbery division, which deals with celebrity cases, headed to Brown's home after the woman called for help at 3:11 am (1011 GMT).
Brown, 27, took to social media to deny any wrongdoing, daring police to get a search warrant to enter his home in a series of videos posted on Instagram.
"When you get the warrant for whatever you need to do, you're going to walk right up in here and you're going to see nothing, you idiots," said a visibly angry Brown. "You're all the worst gang in the world, the police."
He claimed that he was sound asleep and was awakened by police and media outside his home.
"So I'm asleep half the damn night, I just wake up, all these (expletive) helicopter choppers is around," he said.
"There are police out there at the gate... What the (expletive) else do you want from me, bro? I stay out of the way. Take care of my daughter. Do work... At the same time, when I call the police for stalker people that are endangering my life, they don't come till the next day. Let somebody make a (expletive) allegation about me, oh yeah, the whole (expletive) SWAT team."
Police by early afternoon had obtained a search warrant and entered the singer's home, where his attorney was also present.
People who left the home were being searched by police but no one was immediately arrested, spokesman Lieutenant Chris Ramirez said.
WATCH: Hundreds take the streets in Los Angeles to protest police brutality
The R&B singer, who topped the US singles chart with "Run It!" and "Kiss Kiss," has had years of run-ins with the law.
Most notoriously, he was convicted of beating then-girlfriend Rihanna before the 2009 Grammy Awards, forcing the pop singer to miss the music industry's annual gala.
In 2014, he pleaded guilty to assaulting a man outside a Washington hotel and earlier this year was accused of battery by a woman in Las Vegas.
He was accused last year of fraud in the Philippines for failing to perform a concert, also leading the singer to voice anger on Instagram while he waited to leave the country.