Officers were flagged down in the early hours of Friday morning to a report of intruders at a unit on Owen Road, in Merridale.
Police spotted people at the building and quickly detained two men.
A further three men were arrested following a foot chase that ended in Bantock Park.
Subsequent enquiries at the scene identified a significant cannabis factory inside the unit.
The suspects, all aged between 20 and 42, were brought into police custody for questioning.
Three of the men were later released with no further action, however two men, aged 20 and 25, have been released on bail pending further enquiries.