Five men who were arrested after police found a cannabis farm on an industrial estate have been released on bail.
The first four men were held by police in the Chemistry Lane area of Sandycroft, Deeside, on Sunday.
When police returned to the area to arrest another suspect on Monday morning, he refused to give himself up and the seven-hour stand-off began.
The man is alleged to have made threats to officers and refused to surrender.
In pictures: The Sandycroft siege
North Wales Police stood down at around 5.30pm after the man had been detained.
What appeared to be items related to the growing of cannabis could be seen in the yard of one of the buildings in the vicinity of where the drama unfolded, and bystanders reported a strong scent of cannabis in the air.
A spokesman for North Wales Police said: “All five arrested in connection with the Sandycroft incident have been interviewed and bailed to return to the police station at a later date, to allow officers time to complete enquiries.”