About 100 people shouting "cops go home" joined a protest as immigration enforcement officers tried to remove a man allegedly in the country illegally.
The group gathered in Chelsea Road, in the Easton area of Bristol, after a "small number" of protesters had used vehicles to block the road.
Police said the group was attempting to stop the man from being taken away.
Avon and Somerset Police said the situation was "resolved in the early hours" and the man had been detained.
"Cops go home!" Deportation resistance happening now (11pm) in Easton, Bristol. 50 residents out on the streets blocking a UK Border Agency van from removing a resident. @EDeportations #Stansted15 pic.twitter.com/4rnHQNHgXc— BristolRisingTide (@BrisRisingTide) October 25, 2018
On Chelsea road last night immigration swooped on local shopkeeper. Man jumped on van to prevent it. Residents blocked road with pieces of their furniture. Police eventually withdrew. Haven’t seen it on local news yet. Proud of you Bristol. pic.twitter.com/7OZcO6kdQF— Caroline Williams (@c_william5) October 26, 2018
A force spokesman confirmed officers had been called at about 22:15 BST on Thursday by immigration officials who had detained the man and were trying to take him away.
"We will always facilitate peaceful and lawful protest and we are pleased to say that thanks to the support from our community leaders, and people living locally, the situation was resolved," he said.
"At around 5am this morning the immigration enforcement officers were able to leave the area [with the man] without incident or injury and without the necessity for any arrests."
A Home Office spokesman said following an intelligence-led visit to a business in Chelsea Road, a 49-year-old man from Pakistan was arrested "as checks revealed he had overstayed his visa".
"He remains in immigration detention pending his removal from the UK."