The assault allegedly occurred on Lygon Road, Carlton about 11pm yesterday.
The 2 males who had been focused weren't injured.
The 5 males allegedly behind the assault had fled the scene by the point police arrived.
Police discovered them shortly afterwards in a automotive on the intersection of Dryburgh and Arden streets in North Melbourne.
The 5 males, a 26-year-old from Tarneit, a 24-year-old from Footscray, a 20-year-old from Collingwood, a 20-year from Dandenong North man and a 23-year-old from Fitzroy, had been all arrested.
They're talking with police.