Ugandan popstar turned legislator Bobi Wine, 36, was placed under house arrest on Tuesday — less than a day after police detained him.

"Police and the military have been deployed at my residence since yesterday, after the violent arrest. My home is under siege. They have surrounded my fence and installed barricades on all roads leading to my home," the activist stated in a tweet on Tuesday.

"It is today when I attempted to move out of my home that the police told me that I am under house arrest."

According to CNN, Wine, born Robert Kyagulanyi, has been in a standoff with the Ugandan police since Monday. Authorities canceled the activist's nationwide shows because they say they failed to meet adequate safety standards. Ugandan police spokesman Fred Enanga told CNN that they wanted to work with Wine and his promoters to ensure proper safety standards were met such as sniffer dogs and security. 

"They threatened to go ahead with the concert and turned it into a protest," Enanga said.

Wine said he was heading to the police headquarters in Naguru to notify authorities about "planned peaceful demonstrations" against police brutality, injustice and misuse of authority when police blocked him.

Blavitize your inbox! Join our daily newsletter for fresh stories and breaking news.

"I asked my lawyers to deliver the letter, but they too have been blocked and stopped from accessing the police headquarters," Wine continued, describing the incident in a series of tweets. "A public office! They were ordered to leave the gate to the police headquarters immediately or face arrest!"

Enanga said that police used tear gas and water cannons to disperse protesters, although they "didn't use live bullets" for this purpose.

"We managed to pick him and two of his promoters and escort them to their homes. Our officers professionally managed to calm the situation," he noted.

Wine won the Kyadondo East seat in June 2017, beating candidates from the ruling National Resistance Movement (NRM) and the opposition Forum for Democratic Change (FDC).

Shortly after his win, Wine told the BBC that he represented a new generation, and he wanted to give young people confidence.

While under arrest, Wine made the most of a frightening situation: 

Now, check these out:

Life After Going Viral: June Bug Shares How Harlem Shaking In An Empty Parking Lot Forever Changed His Life

Why Presidential Candidate Pete Buttigieg Is Against Giving Incarcerated People The Right To Vote

How Photographer Kwame Brathwaite Made 'Black Is Beautiful' A Powerful Visual Movement