To swarm or crowd together; to gather in a mass (intransitive). Often implies a sudden or dense gathering.
人気の店の前に客が群がって列を作っていた。
Customers were crowding together in front of the popular shop, forming a line.
公園に餌を持っていくと、鳩が群がってくる。
If you bring food to the park, pigeons swarm around you.
記者たちが選手の周りに群がった。
Reporters swarmed around the athlete.